Is there some documentation somewhere, or an explanation, or a sample,
of how to use the TopDocCollector?

I do this:

Query qry = q.Parse(query);
TopDocCollector tdc = new TopDocCollector(1000);
searcher.Search(qry, tdc);
tdc.Collect(100,5);

...and then what? How do I retreive the TopDocs that were just
collected? I don't see any properties of the collector that contain an
array of docs. I don't see any methods that return an array of docs.

I must be missing something obvious... but whatever it is, it is elluding me.


--
-
P

Reply via email to