One way would be to create your own Query subclass (similar to TermQuery) that returned a score of zero for docs below a certain tf threshold. This is

minor clarification: a score of zero is still a match ... the key to writting custom queries is to "skip" past a document that doesn't meet the criteria you want and not return any score for it at all.

if you wnat to write a custom query class, start by making sure you understand all of hte internals of Scoring...

        http://lucene.apache.org/java/docs/scoring.html

...at that point the java-user mailing list is probably a better place to ask questions about the details involved in writing custom Query classes.



-Hoss

Reply via email to