0
0
Commit Graph

8 Commits

Author SHA1 Message Date
Marty Schoch
8f8bb91439 simplify date parsing in queries, add date to query string
parsing of date ranges in queries no longer consults the
index mapping.  it was deteremined that this wasn't very useful
and led to overly complicated query syntax/behavior.

instead, applications get set the datetime parser used for
date range queries with the top-level config QueryDateTimeParser

also, we now support querying date ranges in the query string,
the syntax is:

field:>"date"

>,>=,<,<= operators are supported
the date must be surrounded by quotes
and must parse in the configured date format
2016-04-22 17:12:10 -04: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
78467c0836 refactored yacc parsing code to be threadsafe, removed mutex 2014-10-23 15:56:59 -04:00
Marty Schoch
85b21f8864 change to make generated lexer private 2014-08-29 23:31:40 -04:00
Marty Schoch
bc8e4a81b8 made parse query string private 2014-08-29 19:31:09 -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