Here is an updated patch that includes Shalin's suggestions:
- replace TermData with TermsResponse.Term
- updates TermsHelper to use the parsing code from TermsResponse
I also changed TermsResponse.Term#frequency to a long so that we don't overflow when calculating the frequency. Then to keep back-compatbility with existing code I do the following when writing it to the NamedList:
if (tc.getFrequency() >= freqmin && tc.getFrequency() <= freqmax)
Is this a good approach?
This new patch includes