lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Diviacco <>
Subject Question about passing tags to BM25BooleanQuery
Date Tue, 19 Apr 2011 11:40:06 GMT
I'm using BM25 Okapi Query form here:

I've a quick question. I've a list of tags: "tag1 tag2 tag3" and I'm
currently passing them to the query in this way:

BM25BooleanQuery okapiQuery = new BM25BooleanQuery("tag1 tag2 tag3",
new WhitespaceAnalyzer(org.apache.lucene.util.Version.LUCENE_40));

Are them considered individually, or should I concatenate
multiple BM25BooleanQuery into a BooleanQuery ?


This is the constructor doc:

public BM25BooleanQuery(java.lang.String query,
                        java.lang.String field,
                        Analyzer analyzer)
                 throws ParseException,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message