Hi! Take a look on http://wiki.apache.org/solr/SchemaXml#Common_field_options parameter "*omitTermFreqAndPositions"*
or you can use a custom similarity class that overrides the term freq and return one for only that field. http://wiki.apache.org/solr/SchemaXml#Similarity <fieldType name="text_dfr" class="solr.TextField"> <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <similarity class="solr.MyCustomSimiliratyWithoutTermFreq"> </similarity> </fieldType> Best, On Wed, Mar 13, 2013 at 8:43 PM, roz dev <rozde...@gmail.com> wrote: > Hi All > > I am wondering if there is a way to alter term frequency of a certain field > as 1, even if there are multiple matches in that document? > > Use Case is: > > Let's say that I have a document with 2 fields > > - Name and > - Description > > And, there is a document with data like this > > Document_1 > Name = Blue Jeans > Description = This jeans is very soft. Jeans is pretty nice. > > Now, If I Search for "Jeans" then "Jeans" is found in 2 places in > Description field. > > Term Frequency for Description is 2 > > I want Solr to count term frequency for Description as 1 even if "Jeans" is > found multiple times in this field. > > For all other fields, i do want to get the term frequency, as it is. > > Is this doable in Solr with any of the functions? > > Any inputs are welcome. > > Thanks > Saroj > -- Felipe Lahti Consultant Developer - ThoughtWorks Porto Alegre