Re: score and frequency

2004-06-24 Thread Niraj Alok
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

Re: score and frequency

2004-06-24 Thread Brisbart Franck
: 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

Re: score and frequency

2004-06-24 Thread Niraj Alok
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

Re: score and frequency

2004-06-24 Thread Niraj Alok
, 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

Re: score and frequency

2004-06-24 Thread Brisbart Franck
: 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

Re: score and frequency

2004-06-24 Thread Niraj Alok
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

Re: score and frequency

2004-06-24 Thread Andrzej Bialecki
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

Re: score and frequency

2004-06-24 Thread Niraj Alok
: 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

Re: score and frequency

2004-06-24 Thread Niraj Alok
)); 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

Re: score and frequency

2004-06-14 Thread Niraj Alok
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

Re: score and frequency

2004-06-07 Thread Brisbart Franck
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

Re: score and frequency

2004-06-07 Thread Niraj Alok
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

Re: score and frequency

2004-06-05 Thread Erik Hatcher
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

score and frequency

2004-06-04 Thread Niraj Alok
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

Re: score and frequency

2004-06-04 Thread Niraj Alok
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

Re: score and frequency

2004-06-04 Thread Phil brunet
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

Re: score and frequency

2004-06-04 Thread Brisbart Franck
[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

Re: score and frequency

2004-06-04 Thread Niraj Alok
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