Hi blargy,

Norms are:

- a field-specific multiplicative document scoring factor

- the product of three factors: user-settable 1) field boost and 2) document 
boost (both default to 1.0), along with the 3) field length norm, defined in 
DefaultSimilarity as 1/sqrt(# terms).

- encoded as a positive 8-bit float - range: 6x10^-10 to 7x10^9; accuracy: 
about 7/10's of a decimal digit.  (I have a table of all 256 possible values if 
you're interested.)

Check out the (fuller, less buggy, and way shinier) explanation at the top of 
the javadocs page that Marc sent the link to.

Steve

On 03/19/2010 at 10:51 AM, blargy wrote:
> 
> Ok so as if I wanted to add boost to fields at indexing time then I
> should include norms. On the other hand if I just want to boost at query
> time then its quite alright to omit norms.
> 
> Anyone mind explaining what norms are in layman's terms ;)
> 
> 
> Marc Sturlese wrote:
> > 
> > > > Should I include not omit-norms on any fields that I would like to
> boost
> via a boost-query/function >>query?
> > You don't have to set norms to use boost queries or functions. Just
> > have to set them when you want to boost docs or fields at indexing time.
> > 
> > > > What about sortable fields? Facetable fields?
> > You can use both without setting norms aswell.
> > 
> > See what norms are for:
> > 
> http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Simila
> rity.html#lengthNorm%28java.lang.String,%20int%29
> > 
> > 
> > blargy wrote:
> > > 
> > > Should I include not omit-norms on any fields that I would like to
> > > boost via a boost-query/function query?
> > > 
> > > For example I have a created_on field on one of my documents and I
> > > would like to add some sort of function query to this field when
> > > querying. In this case does this mean I need to have the norms?
> > > 
> > > What about sortable fields? Facetable fields?
> > > 
> > > Thanks!
> > > 
> > 
> > 
> 
> -- View this message in context: http://old.nabble.com/Omitting-norms-
> question-tp27950893p27950977.html Sent from the Solr - User mailing list
> archive at Nabble.com.


Reply via email to