lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: How can i search maximum number of word in particular docs
Date Tue, 24 Sep 2013 17:58:44 GMT
: &q=pookan
	...
: Acutually i want particular word for that match max in content tag that
: come first (relevancy based)

the default TF-IDF scoring mechanism rewards documents for matching a term 
multiple times (thats the the "TF" part) but there is also a length 
normalization factor that comes into play -- the idea being that a a very 
short document -- maybe only a paragraph -- containing 2 instances of 
"pookan" is probably more relevant than a longer document containing 3 
instances of the same term, if that longer document is several thouand 
paragraphs.

you can disable this length normalization by using "omitNorms"...

https://cwiki.apache.org/confluence/display/solr/Field+Type+Definitions+and+Properties


-Hoss

Mime
View raw message