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

Add search timeout support to Lucene

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Patch Available

    Description

      This patch is based on Nutch-308.

      This patch adds support for a maximum search time limit. After this time is exceeded, the search thread is stopped, partial results (if any) are returned and the total number of results is estimated.

      This patch tries to minimize the overhead related to time-keeping by using a version of safe unsynchronized timer.

      This was also discussed in an e-mail thread.
      http://www.nabble.com/search-timeout-tf3410206.html#a9501029

      Attachments

        1. HitCollectorTimeoutDecorator.java
          1 kB
          Timo Nentwig
        2. LuceneTimeoutTest.java
          2 kB
          Sean Timm
        3. LuceneTimeoutTest.java
          2 kB
          Sean Timm
        4. MyHitCollector.java
          0.3 kB
          Timo Nentwig
        5. timeout.patch
          16 kB
          Doron Cohen
        6. timeout.patch
          16 kB
          Doron Cohen
        7. timeout.patch
          16 kB
          Doron Cohen
        8. timeout.patch
          10 kB
          Sean Timm
        9. timeout.patch
          4 kB
          Sean Timm
        10. timeout.patch
          5 kB
          Sean Timm
        11. timeout.patch
          15 kB
          Sean Timm
        12. timeout.patch
          14 kB
          Sean Timm
        13. TimerThreadTest.java
          5 kB
          Sean Timm

        Issue Links

          Activity

            People

              doronc Doron Cohen
              timmsc Sean Timm
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: