Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7398

Nested Span Queries are buggy

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 5.5
    • None
    • core/search
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-7398.patch
          30 kB
          Paul Elschot
        2. LUCENE-7398.patch
          5 kB
          Alan Woodward
        3. LUCENE-7398.patch
          5 kB
          Alan Woodward
        4. LUCENE-7398-20160814.patch
          11 kB
          Paul Elschot
        5. LUCENE-7398-20160924.patch
          32 kB
          Paul Elschot
        6. LUCENE-7398-20160925.patch
          37 kB
          Paul Elschot
        7. TestSpanCollection.java
          9 kB
          Christoph Goller

        Issue Links

          Activity

            People

              romseygeek Alan Woodward
              goller@detego-software.de Christoph Goller
              Votes:
              14 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

                Created:
                Updated: