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

TimeLimitedIndexReader and associated utility class

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core/index
    • None
    • New

    Description

      An alternative to TimeLimitedCollector that has the following advantages:

      1) Any reader activity can be time-limited rather than just single searches e.g. the document retrieve phase.
      2) Times out faster (i.e. runaway queries such as fuzzies detected quickly before last "collect" stage of query processing)

      Uses new utility timeout class that is independent of IndexReader.

      Initial contribution includes a performance test class but not had time as yet to work up a formal Junit test.
      TimeLimitedIndexReader is coded as JDK1.5 but can easily be undone.

      Attachments

        1. LUCENE-1720.patch
          66 kB
          Shai Erera
        2. LUCENE-1720.patch
          63 kB
          Shai Erera
        3. Lucene-1720.patch
          50 kB
          Mark Harwood
        4. Lucene-1720.patch
          29 kB
          Mark Harwood
        5. LUCENE-1720.patch
          28 kB
          Shai Erera
        6. ActivityTimeMonitor.java
          9 kB
          Mark Harwood
        7. TestTimeLimitedIndexReader.java
          5 kB
          Mark Harwood
        8. TimeLimitedIndexReader.java
          6 kB
          Mark Harwood
        9. ActivityTimeMonitor.java
          8 kB
          Mark Harwood
        10. ActivityTimeMonitor.java
          7 kB
          Mark Harwood
        11. ActivityTimedOutException.java
          1 kB
          Mark Harwood
        12. TimeLimitedIndexReader.java
          6 kB
          Mark Harwood
        13. TestTimeLimitedIndexReader.java
          4 kB
          Mark Harwood

        Issue Links

          Activity

            People

              mharwood Mark Harwood
              mharwood Mark Harwood
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: