Hi Otis, here is the debug output on the query... seems all tf and idf indeed return 1.0f as I customized... I did not overwrite queryNorm or weight etc... see below.
but the bottom line is that if my purpose is to reduce the frq file size, customize similarity seems wont help on that. I guess the term frequency is still stored no matter what the similarity algorithm is, correct? thanks Jie <lst name="debug"> <str name="rawquerystring">type:message AND subject_eng:Resources</str><str name="querystring">type:message AND subject_eng:Resources</str><str name="parsedquery">+type:message +subject_eng:resources</str><str name="parsedquery_toString">+type:message +subject_eng:resources</str> <lst name="explain"> <str name="9da6ed3ea1f2317e4b1d0ec93be5d8ce7bb162ca"> 0.92807764 = (MATCH) sum of: 0.70710677 = (MATCH) weight(type:message in 596), product of: 0.70710677 = queryWeight(type:message), product of: 1.0 = idf(docFreq=10247, maxDocs=10247) 0.70710677 = queryNorm 1.0 = (MATCH) fieldWeight(type:message in 596), product of: 1.0 = tf(termFreq(type:message)=1) 1.0 = idf(docFreq=10247, maxDocs=10247) 1.0 = fieldNorm(field=type, doc=596) 0.22097087 = (MATCH) weight(subject_eng:resources in 596), product of: 0.70710677 = queryWeight(subject_eng:resources), product of: 1.0 = idf(docFreq=20, maxDocs=10247) 0.70710677 = queryNorm 0.3125 = (MATCH) fieldWeight(subject_eng:resources in 596), product of: 1.0 = tf(termFreq(subject_eng:resources)=1) 1.0 = idf(docFreq=20, maxDocs=10247) 0.3125 = fieldNorm(field=subject_eng, doc=596) </str></lst><str name="QParser">LuceneQParser</str><lst name="timing"><double name="time">2.0</double><lst name="prepare"><double name="time">1.0</double><lst name="org.apache.solr.handler.component.QueryComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.FacetComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.MoreLikeThisComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.HighlightComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.StatsComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.DebugComponent"><double name="time">0.0</double></lst></lst><lst name="process"><double name="time">0.0</double><lst name="org.apache.solr.handler.component.QueryComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.FacetComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.MoreLikeThisComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.HighlightComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.StatsComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.DebugComponent"><double name="time">0.0</double></lst></lst></lst></lst></response> -- View this message in context: http://lucene.472066.n3.nabble.com/if-I-only-need-exact-search-does-frequency-score-matter-tp4026893p4028131.html Sent from the Solr - User mailing list archive at Nabble.com.