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:
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;