apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.63k stars 1.02k forks source link

Add search timeout support to Lucene [LUCENE-997] #2073

Closed asfimport closed 16 years ago

asfimport commented 17 years ago

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


Migrated from LUCENE-997 by Sean Timm, 3 votes, resolved Feb 12 2008 Attachments: HitCollectorTimeoutDecorator.java, LuceneTimeoutTest.java (versions: 2), MyHitCollector.java, timeout.patch (versions: 8), TimerThreadTest.java Linked issues:

asfimport commented 16 years ago

Sean Timm (migrated from JIRA)

"If there are no more major concerns I think this is now ready to go in, question is where to - under core o.a.l.search or under contrib (query or misc)."

My preference would be for core o.a.l.search.

asfimport commented 16 years ago

Timo Nentwig (migrated from JIRA)

I agree, core.

asfimport commented 16 years ago

Yonik Seeley (@yonik) (migrated from JIRA)

> My preference would be for core o.a.l.search. +1

asfimport commented 16 years ago

Doron Cohen (migrated from JIRA)

Committed (under core o.a.l.search). Thanks Sean!