lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wang <john.w...@gmail.com>
Subject TermCount per fiend
Date Mon, 21 Sep 2009 13:14:54 GMT
Hi guys:
     Not sure if this would be a better fit on the users or the dev list.

     It would be very useful to be able to get term count given a field,
e.g.

     int IndexReader.termCount(String field)

     Wanted to get your opinion on what is the best way to approach this.
After looking through the code, seems like we do have it stored
in TermsHashPerField.numPostingInt. (hopefully I am reading it correctly)

    Is it possible to add to the FieldInfo class and write it out?

Thanks

-John

Mime
View raw message