: Can someone point to or provide an example of how to incorporate a 
: custom hitcollector when using Solr?
this is somewhat hard to do in non trivial ways because you would need to 
by-pass a lot of hte Solr code that builds up DocLists and DocSets ... 

if however you don't need either of those, or things that depend on them,
you can write a customm RequestHandler or SearchComponent and
call any method you want on the (Solr)IndexSearcher and pass in your 
HitCollector.

depending on what your HitCollector does you could also use it to build up 
a DocSet that you then pass as a filter to the existing Solr methods 
... assuming the reason you want to use it is to filter results, if you 
want to use it to "visit" every match, you could let solr do the 
search, get the resulting DocSet and then iterate over the each match 
calling your HitCollector. 



-Hoss

Reply via email to