Re: Boost document base on field length

2009-11-24 Thread Lance Norskog
The Lucene norms, if set, are 1/number of terms in the field. I cannot find a function that makes norms available. Yo gurus- is this impossible, a bad idea, or just an oversight? On Tue, Nov 24, 2009 at 6:06 AM, Tomasz Kępski wrote: > Hi, > >> I think i'm reading he question differently then Gra

Re: Boost document base on field length

2009-11-24 Thread Tomasz Kępski
Hi, I think i'm reading he question differently then Grant -- his suggestion applies when you are searching in the description field, and don't want documents with shorter descriptions to score higher when the same terms match the same number of times (the default behavior of lengthNorm) my

Re: Boost document base on field length

2009-11-23 Thread Chris Hostetter
: > I would like to boost documents with longer descriptions to move down documents with 0 length description, : > I'm wondering if there is possibility to boost document basing on the field length while searching or the only way is to store field length as an int in a separate field while inde

Re: Boost document base on field length

2009-11-23 Thread Grant Ingersoll
On Nov 23, 2009, at 8:01 AM, Tomasz Kępski wrote: > Hi, > > I would like to boost documents with longer descriptions to move down > documents with 0 length description, > I'm wondering if there is possibility to boost document basing on the field > length while searching or the only way is to

Boost document base on field length

2009-11-23 Thread Tomasz Kępski
Hi, I would like to boost documents with longer descriptions to move down documents with 0 length description, I'm wondering if there is possibility to boost document basing on the field length while searching or the only way is to store field length as an int in a separate field while indexin