lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Harwood <>
Subject Re: Boolean retrieval
Date Sat, 04 Jul 2009 19:14:41 GMT

Check out booleanfilter in contrib/queries. It can be wrapped in a constantScoreQuery

On 4 Jul 2009, at 17:37, Lukas Michelbacher <> wrote:

This is about an experiment comparing plain Boolean retrieval with
vector-space-based retrieval.

I would like to disable all of Lucene's scoring mechanisms and just
run a true Boolean query that returns exactly the documents that match a
query specified in Boolean syntax (OR, AND, NOT). No scoring or sorting

As far as I can see, this is not supported out of the box.  Which classes
would I have to modify?

Would it be enough to create a subclass of Similarity and to ignore all terms but one (coord,
say) and make this term return 1 if the query matches the document and 0 otherwise?


Lukas Michelbacher
Institute for Natural Language Processing
Universit├Ąt Stuttgart

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


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

View raw message