Issue Details (XML | Word | Printable)

Key: LUCENE-1371
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael McCandless
Reporter: Michael McCandless
Votes: 0
Watchers: 0
Operations

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

Add Searcher.search(Query, int)

Created: 30/Aug/08 09:07 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Search
Affects Version/s: 2.4
Fix Version/s: 2.4

Time Tracking:
Not Specified

Lucene Fields: New
Resolution Date: 03/Sep/08 09:06 AM


 Description  « Hide
Now that we've deprecated Hits (LUCENE-1290), I think we should add this trivial convenience method to Searcher, which is just sugar for Searcher.search(Query, null, int) ie null filter, returning a TopDocs.

This way there is a simple API for users to retrieve the top N results for a Query.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #691549 Wed Sep 03 09:06:13 UTC 2008 mikemccand LUCENE-1371: add convenience method TopDocs Searcher.search(Query query, int n)
Files Changed
MODIFY /lucene/java/trunk/src/java/org/apache/lucene/search/Searcher.java

Michael McCandless made changes - 03/Sep/08 09:06 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Repository Revision Date User Message
ASF #691559 Wed Sep 03 10:08:56 UTC 2008 mikemccand LUCENE-1371: added entry in CHANGES for API change
Files Changed
MODIFY /lucene/java/trunk/CHANGES.txt

Michael McCandless made changes - 11/Oct/08 12:49 PM
Status Resolved [ 5 ] Closed [ 6 ]