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

          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: