Hello David,

Use TopDocs or TopFieldDocs to collect only required hits.

----
TopDocs topDocs  = searcher.search(query,10)
int docID = topDocs.scoreDocs[index].doc;
Document doc = searcher.doc(docID);
----

Regards
Ganesh


----- Original Message ----- From: "David Massart" <[EMAIL PROTECTED]>
To: <java-user@lucene.apache.org>
Sent: Tuesday, October 14, 2008 12:14 PM
Subject: querying without hits


Dear all,
Could one of you point me to an example of code for querying without using
the deprecated class Hits ?

Thank you,

David


Send instant messages to your online friends http://in.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to