lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang" <john.w...@gmail.com>
Subject Re: TopDocs
Date Fri, 05 Dec 2008 03:02:11 GMT
searcher.doc(scoreDoc.doc);

On Thu, Dec 4, 2008 at 6:59 PM, Ian Vink <ianvink@gmail.com> wrote:

> I have this search which returns TopDocs
> TopDocs topDocs = searcher.Search(query, bookFilter, maxDocsToFind);
>
>
> How do I get the document object for the ScoreDoc?
>
>  foreach (ScoreDoc scoreDoc in topDocs.scoreDocs)
> {
> ??????    Document myDoc =   GetTheDocument(scoreDoc.doc); ??????
> }
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message