0
0
Commit Graph

17 Commits

Author SHA1 Message Date
Marty Schoch
2af47cea75 fix query string query syntax when term starts with a number
fixes #207
2015-05-21 15:43:13 -04:00
Marty Schoch
29b4f9623a fix query parser to recognize field prefix before fuzzy tilde 2015-01-19 16:20:32 -05:00
Marty Schoch
4c269a9f44 when generating parser, run go fmt on the lexer
closes #136
2015-01-02 10:02:20 -08:00
Marty Schoch
9fb6476a0f migrated from genparser.sh to go generate
closes #135
2015-01-01 19:29:16 -08:00
Marty Schoch
5a6a08e8de reverting to older nex, didn't realize it broke 2014-12-29 18:35:39 -08:00
Marty Schoch
b5609e47a1 after actually installing new nex 2014-12-29 17:41:15 -08:00
Marty Schoch
2f6901c8d4 updated nex 2014-12-29 17:39:54 -08:00
Marty Schoch
3f50a3dc81 updated lexer 2014-12-29 09:39:40 -08:00
Marty Schoch
0ddfa774ec clean up logging to use package level *log.Logger
by default messages go to ioutil.Discard
2014-12-28 12:14:48 -08:00
Marty Schoch
3a0263bb72 finished initial impl of fuzzy search
you can do a manual fuzzy term search using the FuzzyQuery struct
or, more suitable for most users the MatchQuery now supports
some fuzzy options.  Here you can specify fuzziness and
prefix_length, to turn the underlying term search into a fuzzy
term search.  This has the benefit that analysis is performed
on your input, just like the analyzed field, prior to computing
the fuzzy variants.

closes #82
2014-10-24 13:39:48 -04:00
Marty Schoch
78467c0836 refactored yacc parsing code to be threadsafe, removed mutex 2014-10-23 15:56:59 -04:00
Marty Schoch
8222fbea57 improve lexer handling of special characters
characters like + and - are special
but they should only be special at the beginning of strings
inside someting that would otherwise be a string we should just
let them be characters
closes #103
2014-10-10 20:45:57 -07:00
Marty Schoch
af6a5d27eb allow term searches for numbers
closes #108
2014-10-10 20:36:31 -07:00
Marty Schoch
85b21f8864 change to make generated lexer private 2014-08-29 23:31:40 -04:00
Marty Schoch
f2c781fa21 refactor to make all the query classes private 2014-08-29 18:14:12 -04:00
Marty Schoch
607b038283 refactored boolean query to only depend on query 2014-08-29 16:27:32 -04:00
Marty Schoch
7313e7247e renamed SyntaxQuery QueryStringQuery
also made IndexMeta private
2014-08-29 15:19:02 -04:00