0
0
Commit Graph

10 Commits

Author SHA1 Message Date
Patrick Mezard
ff7234d893 query_docid: add DocIDQuery to filter by document identifiers 2015-11-04 18:41:16 +01:00
Sergey Avseyev
8609e7af08 Simplify JSON API for phrase query
New API looks like this:

    {"query":{"terms":["watered","down"],"field":"desc"}}

instead of

    {"query":{"terms":[{"term":"watered","field":"desc"},{"term":"down","field":"desc"}]}}

So that it eliminats accidental errors by supplying terms with different
fields, or different type of query
2015-11-02 21:08:11 +03:00
Patrick Mezard
c9619f0359 query: add DumpQuery to expand string query and format them as JSON
This is convenient to see either complicated queries build
programmatically, or to make sure the query parser does what it is
expected to do.

Note only queries made of bleve basic queries are supported. If we
wanted to support external queries, for instance string queries with an
alternative parser, I suggest to introduce some kind of:

type ExpandableQuery interface {
    Query
    Expand(*IndexMapping) (Query, error)
}

and type assert to that instead of *queryStringQuery.
2015-10-23 14:52:42 +02:00
Nimish Gupta
77779b70f4 Allow query string handling which contains only not must
fixes #193
2015-07-08 16:36:14 +05:30
Marty Schoch
bbc6fadf69 changed error constants to camel case
all caps constants are not idiomatic go
2014-09-02 14:14:05 -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
Marty Schoch
37d3f0205d cleanup spacing between license and package 2014-08-29 14:18:36 -04:00
Marty Schoch
b0153cecb4 added tests to top level 2014-08-15 15:49:35 -04:00