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

        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: