Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:54 PM
Subject: Re: score and frequency
The MultiFieldQueryParser give you a BooleanQuery containing 1 query for
each field.
Something like:
BooleanQuery
: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:54 PM
Subject: Re: score and frequency
The MultiFieldQueryParser give you a BooleanQuery containing 1 query for
each field.
Something like:
BooleanQuery
the exact matches to come down.
Regards,
Niraj
- Original Message -
From: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 6:02 PM
Subject: Re: score and frequency
It may come from the boolean clauses. If you add your sub-queries
,
Niraj
- Original Message -
From: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 7:04 PM
Subject: Re: score and frequency
Forget about the PhraseQuery, I'm stupid, it can't work like that.
Because the phrase query will boost
: score and frequency
Forget about the PhraseQuery, I'm stupid, it can't work like that.
Because the phrase query will boost the documents which contain the
search and not the documents which match exactly the search. So, the
exact matches will come down. :-/
You need to have some information about
PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 7:38 PM
Subject: Re: score and frequency
I don't think your field title can be used to search for the exact
match, because in your field, the title is probably tokenized.
The other field for the title should contain
Niraj Alok wrote:
Hi Franck,
That involves a lot of work and most importantly, reindexing, which takes 4
hours for the data I have (approx. 800 MB) .
I will try the same and will get back to you. You really deserve a treat frm
my side :)
[ 30kB of text deleted ]
Folks, please trim down this 30kB
: score and frequency
I don't think your field title can be used to search for the exact
match, because in your field, the title is probably tokenized.
The other field for the title should contain the title as a keyword, ie
not tokenized. So, if the title is 'sea-lion', the term
(title,sea-lion
));
Regards,
Niraj
- Original Message -
From: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 8:34 PM
Subject: Re: score and frequency
It should work with this new field. I don't have other great ideas.
Where are the problems
Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Monday, June 07, 2004 12:50 PM
Subject: Re: score and frequency
It seems that you don't the length norm to be used. It's a factor which
normalize the score of a doc depending on the size of the searched field
of the doc. It's
PM
Subject: Re: score and frequency
Hi,
Be careful to set the default similarity
'Similarity.setDefault(similarity)' before creating your search instance
(IndexSearcher).
If you change the default similarity after, you'll still use the old one.
You'd better use the 'searcher.setSimilarity' method
Hi Frank,
Thanks for the suggestion. I would try that and let you know.
Regards,
Niraj
- Original Message -
From: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Monday, June 07, 2004 12:50 PM
Subject: Re: score and frequency
It seems that you don't
On Jun 5, 2004, at 1:13 AM, Niraj Alok wrote:
I want all the titles which have both ice and hockey to come above
the
rest (to have higher scores)
Meaning i would wish the results to appear like:
ice hockey
ice hockey
ice hockey
winter Olympics: hockey, ice, medallists
ice hockey: British Sekonda
Hi,
I am having some problems with the score of lucene.
I am trying to get the results displayed according to hits.score and it is giving the
results correctly.
However I do not want the frequency factor to be used for the computation of the
score.
Is it possible to get the score which does
PROTECTED]
Sent: Friday, June 04, 2004 1:55 PM
Subject: Re: score and frequency
On Jun 4, 2004, at 2:52 AM, Niraj Alok wrote:
Hi,
I am having some problems with the score of lucene.
I am trying to get the results displayed according to hits.score and
it is giving the results correctly
PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Subject: Re: score and frequency
Date: Fri, 4 Jun 2004 15:13:32 +0530
Hi Erik,
Thanks for the suggestion.
I tried this:
public class RelevanceSimilarity extends DefaultSimilarity
{
public float tf(float freq) {
System.out.println(discounting frequency
[EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Subject: Re: score and frequency
Date: Fri, 4 Jun 2004 15:13:32 +0530
Hi Erik,
Thanks for the suggestion.
I tried this:
public class RelevanceSimilarity extends DefaultSimilarity
{
public float tf(float freq) {
System.out.println(discounting
factor which is producing indesirable results. Any
help in this regard would be highly appreciated.
Regards,
Niraj
- Original Message -
From: Brisbart Franck [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Friday, June 04, 2004 8:46 PM
Subject: Re: score and frequency
Hi
18 matches
Mail list logo