searcher.doc(scoreDoc.doc);

On Thu, Dec 4, 2008 at 6:59 PM, Ian Vink <[EMAIL PROTECTED]> 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); ??????
> }
>
  • TopDocs Ian Vink
    • Re: TopDocs John Wang

Reply via email to