0
0
Commit Graph

7 Commits

Author SHA1 Message Date
Marty Schoch
0aab8d7fb9 fix query string parsing of numeric ranges with negative value
fixes #550
2017-03-16 11:11:28 -04:00
Marty Schoch
bbab4d39ee improve error checking when parsing numbers 2017-02-24 16:30:09 -05:00
Marty Schoch
23bf986632 allow for exact numeric matches with field:val syntax
previously, the only way to get numeric matching was with the
range operators :> :>= :< :<=

now, when we encounter field:val if the val can be parsed as a
number, then we do a disjunction search, which includes
searching for val as a text term and as an exact numeric value
2017-02-24 13:41:59 -05:00
Marty Schoch
abeca559cd don't export unnecessary method 2016-10-02 11:50:58 -04:00
Marty Schoch
ee17941f7f switch DateRangeQuery to use time.Time instead of string
as we are a Go library is this the much more natural way to
express such queries.

support for strings is still supported through json marshal
and unmarshal, as well as inside query string queries

as before we use the package level QueryDateTimeParser to
deterimine which date time parser to use for parsing

only serializing out to json, we consult a new package
variable: QueryDateTimeFormat

this addresses the longstanding PR #255
2016-09-29 14:54:16 -04:00
Marty Schoch
a265218f76 heavier refactor of Query interface to simplify
Boostable, Fieldable, Validatable broken out into separate
interfaces.  This allows them to be discoverable when
needed, but ignorable otherwise.  The top-level bleve package
only every cares about Validatable and even that is optional.

Also, this change goes further to make the structure names
more reasonable, for cases where you're directly interacting
with the structures.
2016-09-29 14:54:16 -04:00
Marty Schoch
9ec2ddd757 initial refactor of query into separate package 2016-09-29 14:54:16 -04:00