Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread Otis Gospodnetic
r-user@lucene.apache.org > Sent: Wed, April 27, 2011 8:25:31 AM > Subject: Re: WhitespaceTokenizer and scoring(field length) > > Thanks!! It's clear now, sometimes the lengthNorm is the same. See the table > below: > > # of termslengthNorm >1 1.0 >2

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread Otis Gospodnetic
d > To: solr-user@lucene.apache.org > Sent: Wed, April 27, 2011 11:29:01 AM > Subject: Re: WhitespaceTokenizer and scoring(field length) > > You can turn off norms for the field. It doens't make any sense to talk > about >"changing the length norm". The length norm i

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread Ahmet Arslan
Is it possible to change the lengthNorm? Yes you can customize it and plug it into solr. DefaultSimilarity and SweetSpotSimilarity can be starting point. http://lucene.apache.org/java/3_0_3/api/core/org/apache/lucene/search/Similarity.html#lengthNorm%28java.lang.String,%20int%29 -- View thi

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread Jonathan Rochkind
You can turn off norms for the field. It doens't make any sense to talk about "changing the length norm". The length norm is based on the size of the field for the particular document, to implement the TF/IDF style relevance algorithm. But you can turn off norms for the field if you don't wa

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread roySolr
Thanks!! It's clear now, sometimes the lengthNorm is the same. See the table below: # of termslengthNorm 1 1.0 2 .625 3 .5 4 .5 5 .4375 6 .375 7 .375 8 .3125 9 .3125 10.3125 Is it pos

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread Ahmet Arslan
2011 11:28 AM Subject: Re: WhitespaceTokenizer and scoring(field length) I thought it was something simple. Here is my configuration:                                             I search for "supermarket":     357     LIDL Headoffice             Supe

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread roySolr
I thought it was something simple. Here is my configuration: I search for "supermarket": 357 LIDL Headoffice Supermarkt LIDL LIDL LIDL

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread roySolr
I thought it was something simple. Here is my configuration: 357 LIDL Headoffice Supermarkt LIDL LIDL LIDL Headoffice

Re: WhitespaceTokenizer and scoring(field length)

2011-04-27 Thread roySolr
I thought it was something simple. Here is my configuration: 357 LIDL Headoffice Supermarkt LIDL LIDL LIDL Headoffice

Re: WhitespaceTokenizer and scoring(field length)

2011-04-26 Thread Otis Gospodnetic
Hi, If you run your query with debugQuery=true you will see the explanation about how Lucene/Solr went about scoring your 2 docs. If you can't figure out what's going on from there, send the relevant part to the list, along with the parsed query (which you can also see from debugQuery=true out

Re: WhitespaceTokenizer and scoring(field length)

2011-04-26 Thread Erick Erickson
First, you can give us some more data to work with ... In particular, attach &debugQuery=on to your http request and post the results. That will show how the documents got their score. Also, show us the definition and definition for the field in question. Best Erick On Tue, Apr 26, 2011 at 10