[
https://issues.apache.org/jira/browse/LUCENE-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558608#comment-13558608
]
Simon Willnauer commented on LUCENE-4696:
-----------------------------------------
I don't think we should do this. We should rather spend time getting rid of
spans entirely - we are really close in LUCENE-2878 already.
> Allow SpanNearQuery to take a BooleanQuery.
> -------------------------------------------
>
> Key: LUCENE-4696
> URL: https://issues.apache.org/jira/browse/LUCENE-4696
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/search
> Affects Versions: 4.0
> Reporter: Michel Conrad
> Labels: booleanquery, query
>
> Currently SpanNearQuery can only take other SpanQuery objects, which include
> spans, span term and span wrapped multi-term queries, but not Boolean queries.
> By allowing a Boolean query to added to a SpanNearQuery, we can add f.i.
> queries
> that come from a QueryParser and which can not be easily transformed in the
> corresponding span objects.
> The main use case here is to find the intersection between two sets of
> results with the additional restriction that the matched terms from the
> different queries should be near one another.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]