计算lucene指数中的词频

Ehs*_*san 3 lucene search word-frequency

有人可以帮助我在所有lucene索引中找到单词频率,
例如,如果doc A有3个单词(B),而doc C有2个单词,我想要一个返回5的方法,显示单词的频率(B)在所有lucene指数