In Solr's schema.xml you can use omitNorms="true" to turn norms off on field-by-field basis.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Jonathan Rochkind <rochk...@jhu.edu> > 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 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 want TF to >be taken into account. > > I _think_ if you turn off norms the relevancy will be based purely on "term >count" rather than "term frequency", which is what you're wanting. But not >sure >of that, I get confused too thinking about the implications of all this >stuff, >but it's something to try/look into. Forget exactly how you turn off norms, >or >if there are ways to turn off some kinds of field norms but not others, but I >recall there is definitely a way to do it on a field-by-field basis (not I >think on a query-by-query basis). > > On 4/27/2011 8:25 AM, roySolr wrote: > > Thanks!! It's clear now, sometimes the lengthNorm is the same. See the table > > below: > > > > # of terms lengthNorm > > 1 1.0 > > 2 .625 > > 3 .5 > > 4 .5 > > 5 .4375 > > 6 .375 > > 7 .375 > > 8 .3125 > > 9 .3125 > > 10 .3125 > > > > Is it possible to change the lengthNorm? > > > > -- > > View this message in context: >http://lucene.472066.n3.nabble.com/WhitespaceTokenizer-and-scoring-field-length-tp2865784p2870206.html > > > Sent from the Solr - User mailing list archive at Nabble.com. > > >