开发者

How can I set the minimum term frequency when creating a lucene index?

At first I have to say that I am completely new to Lucene and therefore my question may be a little bit stupid.

What I would like to do is to create an index which contains terms that occurs at least a specific number of times in a document. The reason why I would like to do that is that I tried to search for a term wh开发者_如何学JAVAich only occurs two times and I got zero results. I tried to find where I can tweak this parameter but without success. I had a look at the index using Luke and it seems that the term does not occur in the index file.

The version of Lucene I must use is 2.0 because I have to use another library which only works with index files of version 2.0.

I would appreciate any hint regarding this problem. Thank you very much!


According to your answer on my comment you can manage stop-word dictionary by creating analyzer

StandardAnalyzer(File stopwords)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜