lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject RE: search problem
Date Fri, 03 Mar 2006 17:58:29 GMT

: Where can I see the example using HitCollector ?

if you mean examples of writing a HitCollector, then the javadocs for the
HitCollector class are a good place to start.  As is the source code for
TopDocCollector and and TopFieldDocCollector.

If you mean an example of using a HitCollector when you search...

     Searcher s = ...;
     Query q = ...;
     MyHitCollectorSubClass h = ...;
     s.search(q, h);
     // now pull whatever data out of h that you want.

LIA Chapter 6.2 ha a lot of good info on HitCollectors as well.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message