an instance of
your subclass to searcher.setSimilarity.
: Date: Fri, 2 Mar 2007 04:23:49 -0800 (PST)
: From: jreeman [EMAIL PROTECTED]
: Reply-To: java-dev@lucene.apache.org
: To: java-dev@lucene.apache.org
: Subject: Re: [jira] Question about hits scores
:
:
: I have been
: Fri, 2 Mar 2007 04:23:49 -0800 (PST)
: From: jreeman [EMAIL PROTECTED]
: Reply-To: java-dev@lucene.apache.org
: To: java-dev@lucene.apache.org
: Subject: Re: [jira] Question about hits scores
:
:
: I have been overwriting the Similarity class of the searcher like this :
:
: DefaultSimilarity
Ok the score depends on the frequence of the hit for each metadata value.
My question is now how to make the score independant from the frequency of a
result ?
jreeman wrote:
Hello,
here is the query I am sending to lucene :
+(document_type:type0one +document_type:type0twenty0one)
I have been overwriting the Similarity class of the searcher like this :
DefaultSimilarity similarity = new DefaultSimilarity();
similarity.idf(0, 1); // idf is set to 1 whithis line of code
searcher.setSimilarity(similarity);
hits=searcher.search(l_query);
But