sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] RFC: Prototype for full-text search indexing
- From: Ismael Luceno <ismael.luceno AT gmail.com>
- To: sm-discuss <sm-discuss AT lists.ibiblio.org>
- Subject: [SM-Discuss] RFC: Prototype for full-text search indexing
- Date: Tue, 25 Nov 2014 02:29:23 -0300
It gives a little improvement over using grep, while still being fairly
simple, using only plain text, and implemented purely in AWK.
This prototype just returns the highest ranking results, and doesn't do
any partial or fuzzy matching, nor case-insensitive matches, but the
idea is to have at least partial matching and regular expressions
working (both should be relatively easy to implement).
Very early stage, lots of improvements coming soon.
Please give it a look.
Usage example:
# Make an index:
; find /var/lib/sorcery/codex/test -name DETAILS -exec cat '{}' + |
awk -f parse-spell | awk -f index > myindex
# Search terms in the index:
; awk -f search myindex term1 term2 ...
Attachment:
index
Description: Binary data
Attachment:
parse-spell
Description: Binary data
Attachment:
search
Description: Binary data
Attachment:
pgpuyFP00jRrQ.pgp
Description: OpenPGP digital signature
- [SM-Discuss] RFC: Prototype for full-text search indexing, Ismael Luceno, 11/25/2014
Archive powered by MHonArc 2.6.24.