RE: Save Number of words in field

2016-03-22 Thread G, Rajesh
...@gmail.com] Sent: Tuesday, March 22, 2016 1:33 AM To: solr-user@lucene.apache.org Subject: Re: Save Number of words in field You can write an Update Request Processor that would count the words in the source value for a specified field and generate that count as an integer value for another field

Re: Save Number of words in field

2016-03-21 Thread Jack Krupansky
You can write an Update Request Processor that would count the words in the source value for a specified field and generate that count as an integer value for another field. My old Solr 4.x Deep Dive book has an example that uses a sequence (chain) of existing update processors to count words in a

Re: Save Number of words in field

2016-03-21 Thread Ahmet Arslan
Hi Rajesh, The number of words are already stored (docValues) in the index. If you don't use index time boost, length of the field can be restored (with some precision loss) from field length norm. http://lucene.apache.org/core/5_5_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.htm