lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Jordan <robe...@gmx.net>
Subject Re: Doubts about TopDocs and Maintain index updated
Date Fri, 30 Apr 2010 08:47:38 GMT
On 30.04.2010 00:01, Leonardo Azize Martins wrote:
> Hello,
>
> In the current version Hits object is Obsolete. How to use TopDocs? How can
> I get Document from it?

TopDocs td = searcher.Search (....);

foreach (ScoreDoc sd in td.scoreDocs) {
	Document doc = searcher.Doc(sd.doc);
}

Robert


Mime
View raw message