: my field category (string) has omitNorms=True and  
omitTermFreqAndPositions=True.
:  i have indexed all docs but when i do a search like:
: http://xxx:xxx/solr/select/?q=category:A&debugQuery=on
: i see there's normalization and idf and tf. Why? i can't understand the 
reason.

those options ensure that that information isn't calculated and stored in 
your index, so they don't affect searches, but the debugging code still 
shows where the norms/tf (which don't exist for those fields) are part of 
the score calculation.

You'll note thta they are always "1" in this debug info, making them 
No-Ops in the multiplication...

: 8.676225 = (MATCH) fieldWeight(category:A in 826), product of:
:   1.0 = tf(termFreq(category:A)=1)
:   8.676225 = idf(docFreq=6978, maxDocs=15049953)
:   1.0 = fieldNorm(field=category, doc=826)


-Hoss
  • omitNorms Gastone Penzo
    • Re: omitNorms Chris Hostetter

Reply via email to