lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Anyway to not bother scoring less good matches ?
Date Wed, 04 May 2011 14:02:14 GMT

> Thanks for the hint, so this could be done by overriding getBooleanQuery() in QueryParser

I think something like this should do the trick. Without overriding anything.

Query query= QueryParser.parse("User Entered String");

if (query instanceof BooleanQuery)

You can steal code from solr too, ( e.g. how to calculate mm and optional clause count etc.)

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

View raw message