What are the other parts of your queries like? And why the need for
the separate instantiations of the QueryParser?
You might try something like: good^2 badA^0.1 badB^0.3 or some other
bigger separation of the boost value between the good terms and the
bad terms.
The other thing to do
Hi Grant,
I have an index for articles containing fields 'id' , 'body' and others
BooleanQuery query = new BooleanQuery;
queryParser = new QueryParser("body", new StandardAnalyzer());
query.add(queryParser.parse("keywords"), Occur.MUST);
if i query at this level then i get all the articles I
Hi Prabin,
Can you give an example of what you would like a query to look like?
Lucene doesn't do negative boosts (ok, w/ a patch, I think it can,
but...) At any rate, the boosts are relative, so perhaps you just
lower the boost to be very small for the "bad" terms and raise it
higher f
Hi, I want to give different levels of negative boost (reduce the score) to
documents for different matching queries. How it can be done?? Googling I
found out this link
http://wiki.apache.org/jakarta-lucene/CommunityContributions but it just
gives the option of giving single level negative boos