[ 
https://issues.apache.org/jira/browse/LUCENE-8565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Itamar Syn-Hershko updated LUCENE-8565:
---------------------------------------
    Description: 
SimpleQueryParser 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.

Seems like this is not too hard to pull off and I'll be happy to contribute a 
patch for it.

  was:
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.

Seems like this is not too hard to pull off and I'll be happy to contribute a 
patch for it.


> SimpleQueryParser to support field filtering (aka Add field:text operator)
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-8565
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8565
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>            Reporter: Itamar Syn-Hershko
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> SimpleQueryParser 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.
> Seems like this is not too hard to pull off and I'll be happy to contribute a 
> patch for it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to