Skip to content

TimeLimitedIndexReader and associated utility class [LUCENE-1720] #2794

@asfimport

Description

@asfimport

An alternative to TimeLimitedCollector that has the following advantages:

  1. Any reader activity can be time-limited rather than just single searches e.g. the document retrieve phase.
  2. Times out faster (i.e. runaway queries such as fuzzies detected quickly before last "collect" stage of query processing)

Uses new utility timeout class that is independent of IndexReader.

Initial contribution includes a performance test class but not had time as yet to work up a formal Junit test.
TimeLimitedIndexReader is coded as JDK1.5 but can easily be undone.


Migrated from LUCENE-1720 by Mark Harwood (@markharwood), 2 votes, updated Aug 16 2011
Attachments: ActivityTimedOutException.java, ActivityTimeMonitor.java (versions: 3), Lucene-1720.patch (versions: 2), LUCENE-1720.patch (versions: 3), TestTimeLimitedIndexReader.java (versions: 2), TimeLimitedIndexReader.java (versions: 2)
Linked issues:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions