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.html But i am not sure how you can retrieve that info in the result list.
Ahmet On Monday, March 21, 2016 6:15 PM, "G, Rajesh" <r...@cebglobal.com> wrote: Hi, When indexing sentences I want to store the number of words in the sentence in a fields that I can use to with other query later for word count match. Please let me know whether it is possible? Thanks Rajesh Corporate Executive Board India Private Limited. Registration No: U741040HR2004PTC035324. Registered office: 6th Floor, Tower B, DLF Building No.10 DLF Cyber City, Gurgaon, Haryana-122002, India.. This e-mail and/or its attachments are intended only for the use of the addressee(s) and may contain confidential and legally privileged information belonging to CEB and/or its subsidiaries, including CEB subsidiaries that offer SHL Talent Measurement products and services. If you have received this e-mail in error, please notify the sender and immediately, destroy all copies of this email and its attachments. The publication, copying, in whole or in part, or use or dissemination in any other way of this e-mail and attachments by anyone other than the intended person(s) is prohibited.