Get highest frequency terms from Lucene index

Posted by Julia on Stack Overflow See other posts from Stack Overflow or by Julia
Published on 2010-05-12T19:00:40Z Indexed on 2010/05/12 19:04 UTC
Read the original article Hit count: 321

Hello!

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 30 most occuring terms(still did not decide on threshold, i will analyze results) and their per-index counts. I am aware that I might lose some precision because of potentionally dropped duplicates, but for now, lets say i am ok with that.

So for the proposed solutions, (needless to say maybe) speed is not important, since I would do static analysis, I would put accent on simplicity of implementation because im not so skilled with Lucene (not the programming guru too :/ ) and cant wrap my mind around many concepts of it..

I can not find any code samples from something similar, so all concrete advices (code, pseudocode, links to code samples...) I will apretiate very much!!!

Thank you!

© Stack Overflow or respective owner

Related posts about lucene

Related posts about index