GitHub user synhershko opened a pull request:
https://github.com/apache/lucene-solr/pull/498
[LUCENE-8565] SimpleQueryString to support field filtering (aka Add
field:text operator)
SimpleQueryString lacks support for the `field:` operator for creating
queries which operate on fields other than the default field. Seems like one
can either get the parsed query to operate on a single field, or on ALL defined
fields (+ weights). No support for specifying `field:value` in the query.
It probably wasn't forgotten, but rather left out for simplicity, but since
we are using this QP implementation more and more (mostly through
Elasticsearch) we thought it would be useful to have it in.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/BigDataBoutique/lucene-solr
simpleqp-field-support
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/498.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #498
----
commit 5ade3c14585d86a7adc7ed3b08183496a8c37450
Author: Itamar Syn-Hershko <itamar@...>
Date: 2018-11-14T09:22:23Z
Field support on term queries
commit 53b070ae04fabd0e4043f1a715f0209c5f1dc36f
Author: Itamar Syn-Hershko <itamar@...>
Date: 2018-11-14T09:45:12Z
Phrase query now working too
commit e04906fbc7b7579c82073f54e57e3b302354ecd5
Author: Itamar Syn-Hershko <itamar@...>
Date: 2018-11-14T10:08:44Z
Adding support for fuzzy and prefix queries
commit 3aafddbbc6fb86759ed52d7c4e95935c9f034274
Author: Itamar Syn-Hershko <itamar@...>
Date: 2018-11-14T10:09:07Z
Tests
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]