A Hits object is returned from the search. The Hits object has a
iterator method that returns a HitIterator that in turn returns Hit objects.
Dennis Kubes
Trey Spiva wrote:
I am using the clustering plugin in Nutch. The Clustering plugin
returns the set of HitDetails that are grouped by clusters. When using
the anchors.jsp and cached.jsp you need to pass the indexNo and
indexDocNo properties to the pages. However, the properties only seem
to be present on the Hit classes, and I can not find a way of retrieving
a Hit instance from a HitDetails instance.
Does anyone have any ideas?
What have done is modified getDetails method in IndexSearcher so that
the returned HitDetails has the index number and document index number
as field values. Does this sound like a good patch idea?
Thanks