Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

stored field norm

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


akos.tajti at gmail

Apr 23, 2012, 4:11 AM

Post #1 of 3 (172 views)
Permalink
stored field norm

Dear All,

when indexing an object I create a document that contains a field called
title. I set the boost of that field to 60. After the indexing was complete
I checked the document using luke. The norm field for it contained 40.
Shouldn't this column (the field norm) contain the boost that was set at
indexing time?

Thanks in advance,
Ákos Tajti


ian.lea at gmail

Apr 23, 2012, 4:33 AM

Post #2 of 3 (164 views)
Permalink
Re: stored field norm [In reply to]

Look at norm(t,d) in the javadocs for Similarity. Note use of the
word "encapsulates". Also note the stuff on loss of precision.


--
Ian.


On Mon, Apr 23, 2012 at 12:11 PM, Akos Tajti <akos.tajti [at] gmail> wrote:
> Dear All,
>
> when indexing an object I create a document that contains a field called
> title. I set the boost of that field to 60. After the indexing was complete
> I checked the document using luke. The norm field for it contained 40.
> Shouldn't this column (the field norm) contain the boost that was set at
> indexing time?
>
> Thanks in advance,
> Ákos Tajti

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


akos.tajti at gmail

Apr 23, 2012, 8:35 AM

Post #3 of 3 (164 views)
Permalink
Re: stored field norm [In reply to]

Thanks, Ian,

I checked the documentation and it turned out that the lengt normalization
made the norm so small. I started using SweetSpotSimilarity for that field
and now the scores are ok.

Ákos



On Mon, Apr 23, 2012 at 1:33 PM, Ian Lea <ian.lea [at] gmail> wrote:

> Look at norm(t,d) in the javadocs for Similarity. Note use of the
> word "encapsulates". Also note the stuff on loss of precision.
>
>
> --
> Ian.
>
>
> On Mon, Apr 23, 2012 at 12:11 PM, Akos Tajti <akos.tajti [at] gmail> wrote:
> > Dear All,
> >
> > when indexing an object I create a document that contains a field called
> > title. I set the boost of that field to 60. After the indexing was
> complete
> > I checked the document using luke. The norm field for it contained 40.
> > Shouldn't this column (the field norm) contain the boost that was set at
> > indexing time?
> >
> > Thanks in advance,
> > Ákos Tajti
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.