lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: How to re-index Solr & get term frequency within documents
Date Mon, 01 Jul 2013 15:21:34 GMT
You can write any function query in the field list of the "fl" parameter. 
Sounds like you want "termfreq":



-- Jack Krupansky

-----Original Message----- 
From: Tony Mullins
Sent: Monday, July 01, 2013 10:47 AM
Subject: How to re-index Solr & get term frequency within documents


I am using Solr 4.3.0.
If I change my solr's schema.xml then do I need to re-index my solr ? And
if yes , how to ?

My 2nd question is I need to find the frequency of term per document in all
documents of search result.

My field is

<field name="CommentX" type="text_general" stored="true" indexed="true"
multiValued="true" termVectors="true" termPositions="true"

And I am trying this query


Its just returning me the result set, no info on my searched term's
(iphone) frequency in each document.

How can I make Solr to return the frequency of searched term per document
in result set ?


View raw message