Issue Details (XML | Word | Printable)

Key: LUCENE-997
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Doron Cohen
Reporter: Sean Timm
Votes: 3
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Add search timeout support to Lucene

Created: 13/Sep/07 09:04 PM   Updated: 12/Feb/08 09:02 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works HitCollectorTimeoutDecorator.java 2008-01-01 12:23 PM Timo Nentwig 1 kB
Java Source File Licensed for inclusion in ASF works LuceneTimeoutTest.java 2008-01-25 08:12 PM Sean Timm 2 kB
Java Source File Licensed for inclusion in ASF works LuceneTimeoutTest.java 2007-09-13 09:11 PM Sean Timm 2 kB
Java Source File Licensed for inclusion in ASF works MyHitCollector.java 2008-01-01 12:24 PM Timo Nentwig 0.3 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-02-06 04:21 PM Doron Cohen 16 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-02-06 04:16 PM Doron Cohen 16 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-02-06 12:43 PM Doron Cohen 16 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-02-05 05:47 PM Sean Timm 10 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-01-29 07:18 PM Sean Timm 4 kB
Text File Licensed for inclusion in ASF works timeout.patch 2008-01-25 08:11 PM Sean Timm 5 kB
Text File Licensed for inclusion in ASF works timeout.patch 2007-10-19 07:41 PM Sean Timm 15 kB
Text File Licensed for inclusion in ASF works timeout.patch 2007-09-17 09:54 PM Sean Timm 14 kB
Java Source File Licensed for inclusion in ASF works TimerThreadTest.java 2008-01-25 08:34 PM Sean Timm 5 kB

Lucene Fields: Patch Available
Resolution Date: 12/Feb/08 09:02 PM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #627101 Tue Feb 12 20:55:32 UTC 2008 doronc LUCENE-997: Add search timeout (partial) support.
Files Changed
ADD /lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java
ADD /lucene/java/trunk/src/java/org/apache/lucene/search/TimeLimitedCollector.java
MODIFY /lucene/java/trunk/CHANGES.txt

Repository Revision Date User Message
ASF #627298 Wed Feb 13 07:50:42 UTC 2008 doronc fix multi-thread test for LUCENE-997 (search timeout).
Files Changed
MODIFY /lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java

Repository Revision Date User Message
ASF #627700 Thu Feb 14 10:36:31 UTC 2008 mikemccand LUCENE-997: add missing synchronization in unit test
Files Changed
MODIFY /lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java