[ 
https://issues.apache.org/jira/browse/LUCENE-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15671305#comment-15671305
 ] 

Paul Elschot commented on LUCENE-7398:
--------------------------------------

 bq. is this latest patch ready to be committed, or are there still known 
problems?

Both actually, assuming that master has not had a conflicting update since.
To completely solve this backtracking is needed, and the patch does not provide 
that.

To allow collecting/payloads easily, I'd rather accept the limitations/bugs of 
the current lazy implementation.
As a minimum a reference to this issue could be added to the javadocs of the 
(un)ordered near spans.

AFAIK:
- a complete solution that can be made with lazy iteration is a span near query 
that has two subqueries
and that only checks the span starting positions,
- for subqueries that are terms or that do not vary in length, completeness for 
two subqueries is already there.

In case there is interest in span near queries that only use starting 
positions, well, that should be easy.




> Nested Span Queries are buggy
> -----------------------------
>
>                 Key: LUCENE-7398
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7398
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 5.5, 6.x
>            Reporter: Christoph Goller
>            Assignee: Alan Woodward
>            Priority: Critical
>         Attachments: LUCENE-7398-20160814.patch, LUCENE-7398-20160924.patch, 
> LUCENE-7398-20160925.patch, LUCENE-7398.patch, LUCENE-7398.patch, 
> LUCENE-7398.patch, TestSpanCollection.java
>
>
> Example for a nested SpanQuery that is not working:
> Document: Human Genome Organization , HUGO , is trying to coordinate gene 
> mapping research worldwide.
> Query: spanNear([body:coordinate, spanOr([spanNear([body:gene, body:mapping], 
> 0, true), body:gene]), body:research], 0, true)
> The query should match "coordinate gene mapping research" as well as 
> "coordinate gene research". It does not match  "coordinate gene mapping 
> research" with Lucene 5.5 or 6.1, it did however match with Lucene 4.10.4. It 
> probably stopped working with the changes on SpanQueries in 5.3. I will 
> attach a unit test that shows the problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to