Get highest frequency terms from Lucene index

前端 未结 2 374
孤独总比滥情好
孤独总比滥情好 2020-11-30 15:15

i need to extract terms with highest frequencies from several lucene indexes, to use them for some semantic analysis.

So, I want to get maybe top

相关标签:
2条回答
  • 2020-11-30 15:48

    Have a look at this: http://sujitpal.blogspot.com/2009/02/summarization-with-lucene.html

    The class in this page hascomputeTopTermQuery method which you should be easily able to retrofit for going over multiple indexes.

    0 讨论(0)
  • 2020-11-30 15:52

    A very simple way would be to use Luke. On the 'Overview' tab, there is a 'Show top terms' button that can be used for what you need.

    0 讨论(0)
提交回复
热议问题