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

Add search timeout support to Lucene

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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. LuceneTimeoutTest.java
          2 kB
          Sean Timm
        2. timeout.patch
          14 kB
          Sean Timm
        3. timeout.patch
          15 kB
          Sean Timm
        4. HitCollectorTimeoutDecorator.java
          1 kB
          Timo Nentwig
        5. MyHitCollector.java
          0.3 kB
          Timo Nentwig
        6. timeout.patch
          5 kB
          Sean Timm
        7. LuceneTimeoutTest.java
          2 kB
          Sean Timm
        8. TimerThreadTest.java
          5 kB
          Sean Timm
        9. timeout.patch
          4 kB
          Sean Timm
        10. timeout.patch
          10 kB
          Sean Timm
        11. timeout.patch
          16 kB
          Doron Cohen
        12. timeout.patch
          16 kB
          Doron Cohen
        13. timeout.patch
          16 kB
          Doron Cohen

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: