You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Bertrand VENZAL <be...@cirso.fr> on 2005/11/22 16:07:56 UTC

RE how to change scoring tactics?

Hi,

I had the same problem, I think the easiest is to sort documents after the 
search process, in this aim you can use the class TermFreqVector and the 
function getTermFrequencies to count the number of search phrase.
But maybe there is an other way faster.

Hope this help

Bertrand





Arjen van der Weijden <Ar...@rivm.nl> 
22/11/2005 14:38
Veuillez répondre à
java-user@lucene.apache.org


A
java-user@lucene.apache.org
cc

Objet
how to change scoring tactics?






According to the specs. "the scores are normalized by the length of the
field".
For my application I just need documents to move to the top that have the
highest number of the search-phrase, i.e. scoring without normalization.
How do I do this?

cheers,

Arjen
____________________________________________________________________________

DISCLAIMER:  http://www.rivm.nl/disclaimer.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org



Re: RE how to change scoring tactics?

Posted by Arjen van der Weijden <Ar...@rivm.nl>.
Thanks, I'll have a look at it!


|---------+---------------------------->
|         |           "Bertrand VENZAL"|
|         |           <bertrand.venzal@|
|         |           cirso.fr>        |
|         |                            |
|         |           11/22/2005 04:07 |
|         |           PM               |
|         |           Please respond to|
|         |           java-user        |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                              |
  |       To:       java-user@lucene.apache.org                                                                                  |
  |       cc:                                                                                                                    |
  |       Subject:  RE how to change scoring tactics?                                                                            |
  >------------------------------------------------------------------------------------------------------------------------------|




Hi,

I had the same problem, I think the easiest is to sort documents after the
search process, in this aim you can use the class TermFreqVector and the
function getTermFrequencies to count the number of search phrase.
But maybe there is an other way faster.

Hope this help

Bertrand





Arjen van der Weijden <Ar...@rivm.nl>
22/11/2005 14:38
Veuillez répondre à
java-user@lucene.apache.org


A
java-user@lucene.apache.org
cc

Objet
how to change scoring tactics?






According to the specs. "the scores are normalized by the length of the
field".
For my application I just need documents to move to the top that have the
highest number of the search-phrase, i.e. scoring without normalization.
How do I do this?

cheers,

Arjen
____________________________________________________________________________


DISCLAIMER:  http://www.rivm.nl/disclaimer.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: RE how to change scoring tactics?

Posted by Arjen van der Weijden <Ar...@rivm.nl>.
Merci beaucoup Bertrand, it works!


salut


Arjen




|---------+---------------------------->
|         |           "Bertrand VENZAL"|
|         |           <bertrand.venzal@|
|         |           cirso.fr>        |
|         |                            |
|         |           11/22/2005 04:07 |
|         |           PM               |
|         |           Please respond to|
|         |           java-user        |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                              |
  |       To:       java-user@lucene.apache.org                                                                                  |
  |       cc:                                                                                                                    |
  |       Subject:  RE how to change scoring tactics?                                                                            |
  >------------------------------------------------------------------------------------------------------------------------------|




Hi,

I had the same problem, I think the easiest is to sort documents after the
search process, in this aim you can use the class TermFreqVector and the
function getTermFrequencies to count the number of search phrase.
But maybe there is an other way faster.

Hope this help

Bertrand





Arjen van der Weijden <Ar...@rivm.nl>
22/11/2005 14:38
Veuillez répondre à
java-user@lucene.apache.org


A
java-user@lucene.apache.org
cc

Objet
how to change scoring tactics?






According to the specs. "the scores are normalized by the length of the
field".
For my application I just need documents to move to the top that have the
highest number of the search-phrase, i.e. scoring without normalization.
How do I do this?

cheers,

Arjen
____________________________________________________________________________


DISCLAIMER:  http://www.rivm.nl/disclaimer.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org