Re: filter by term frequency

2012-06-17 Thread Mike Sokolov
Thanks, Jack! On 6/16/2012 5:26 PM, Jack Krupansky wrote: If you were a *Solr* user, I could say try the 'termfreq' function query: termfreq(field,term) returns the number of times the term appears in the field for that document. Example Syntax: termfreq(text,'memory') See:

Calculating Average Document Length with Lucene

2012-06-17 Thread Kasun Perera
I want to calculate average document length for document collection which each document having 3 different fields(filed1, field2,field3) This is the program to calculate average length when only one field is there. private byte[] normsDocLengthArr = null; private double avgDocLength;