Hi erick,
Thanks for your prompt reply...
Let me explain what i m doing
There is lucene query which returns relevant result when i am searching
through Hits object.
But when i m using same query using DocCollector ( I want this way because
want to remove duplicate records at search time )
You get non relevant results because normally a HitCollector will only
collect documents with scores greater than 0.
Hits normalizes raw scores like this:
if (hitDocs.size() > min) {
min = hitDocs.size();
}
int n = min * 2;// double # retrieved
TopDocs topDocs = (sort == n