lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
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 = ...;, 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message