Re: [jira] Question about hits scores

2007-03-05 Thread jreeman
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

Re: [jira] Question about hits scores

2007-03-04 Thread Chris Hostetter
: 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

Re: [jira] Question about hits scores

2007-03-02 Thread jreeman
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)

Re: [jira] Question about hits scores

2007-03-02 Thread jreeman
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