Lucene - Core
  1. Lucene - Core
  2. LUCENE-456

Duplicate hits and missing hits in sorted search

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      JDK 1.4.2_06, probably OS independant, testet on Solaris 8 and Win2000

      Description

      If using a searcher that subclasses from IndexSearcher I get different result sets (besides the ordering of course). The problem only occurrs if the searcher is wrapped by (Parallel)MultiSearcher and the index is not too small. The number of hits returned by un unsorted and a sorted search are identical but the hits are referencing different documents. A closer look at the result sets revealed that the sorted search returns duplicate hits.

      I created test cases for Lucene 1.4.3 as well as for the head release. The problem showed up for both, the number of duplicates beeing bigger for the head realease. The test cases are written for package org.apache.lucene.search. There are messages describing the problem written to the console. In order to see all those hints the asserts are commented out. So dont't be confused if junit reports no errors. (Sorry, beeing a novice user of the bug tracker I don't see any means to attach the test cases on this screen. Let's see.)

      1. TestCustomSearcherSort_HEAD.java
        10 kB
        Martin Seitz
      2. TestCustomSearcherSort_1_4_3.java
        10 kB
        Martin Seitz
      3. FieldDocSortedHitQueue_dups.txt
        0.5 kB
        Yonik Seeley

        Activity

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Martin Seitz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development