Hello,
In my scenario I want to categorize document fields by field types and treat
each field type differently in the meaning of score calculation. To be more
specific, I want to categorize the fields to important fields and
less-important fields, my query will contain both important fields and
l
I'm trying to run queries now, the problem is - the scoring of the
BoostingTermQuery is always giving a double weight to even terms, and not if
the query itself contains the term, here is the code that I'm using:
public class DocumentAnalyzer extends Analyzer {
@Override
public
The problem was solved in #lucene irc channel already. The behaviour of
PayloadTermQuery was correct if you compare scores of a document with an
even and no-even match in the *same* query.
In general: You cannot compare scores on different queries or different
indexes.
-
Uwe Schindler
H.-H.-M
> You need to change multiTermRewriteMethod of QueryParser.
> qp.setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
Thanks. So the normal way of doing this is setting the rewrite method to
scoring, and if BooleanQuery.TooManyClauses is catched then switch back to
constant sc
That would be an option.
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: TorAtle [mailto:toratle...@gmail.com]
> Sent: Sunday, December 20, 2009 5:20 PM
> To: java-user@lucene.apache.org
> Subject: Re: Wi
Hi !
Many thanks to both of you for your suggestions and answers!
What Weiwei Wang suggests is a part of the solution I am willing to
implement. I will definitely use the suggest-as-you-type approach in the
query form as it will allow for pre-emptive disambiguation and I believe,
will give very s