You could instead use a HitCollector to gather only documents with scores in that range.

Doug

Karthik N S wrote:
Hi

Apologies....

If I want to get all the hits for Scores between 0.5f to 0.8f, I usally use
query = QueryParser.parse(srchkey,Fields, analyzer);
int tothits = searcher.search(query);


for (int i = 0; i<tothits ; i++) {
docs = hits.doc(i);
Score = hits.score(i);
if ((Score > 0.5f ) && (Score < 0.8f) ) {
System.out.println(" FileName : " + docs.get("filename");
}
}


Is there any other way to Do this ,
Please Advise me..........

Thx.

WITH WARM REGARDS HAVE A NICE DAY [ N.S.KARTHIK]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to