Issue Details (XML | Word | Printable)

Key: LUCENE-1290
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael Busch
Reporter: Michael Busch
Votes: 2
Watchers: 0
Operations

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

Deprecate Hits

Created: 19/May/08 09:03 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Search
Affects Version/s: None
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works lucene-1290.patch 2008-05-23 06:55 PM Michael Busch 236 kB
Text File Licensed for inclusion in ASF works lucene-1290.patch 2008-05-20 08:23 AM Michael Busch 218 kB
Text File Licensed for inclusion in ASF works lucene-1290.patch 2008-05-19 09:04 PM Michael Busch 214 kB

Lucene Fields: Patch Available, New
Resolution Date: 23/May/08 07:00 PM


 Description  « Hide
The Hits class has several drawbacks as pointed out in LUCENE-954.
The other search APIs that use TopDocCollector and TopDocs should be used instead.

This patch:

  • deprecates org/apache/lucene/search/Hits, Hit, and HitIterator, as well as
    the Searcher.search( * ) methods which return a Hits Object.
  • removes all references to Hits from the core and uses TopDocs and ScoreDoc
    instead
  • Changes the demo SearchFiles: adds the two modes 'paging search' and 'streaming search',
    each of which demonstrating a different way of using the search APIs. The former
    uses TopDocs and a TopDocCollector, the latter a custom HitCollector implementation.
  • Updates the online tutorial that descibes the demo.

All tests pass.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.