how to get a list of all tokens from Solr/Lucene index?

微笑、不失礼 提交于 2021-01-27 10:21:59

问题


I am wondering is there a way to get all tokens from particular record in Lucene/Solr index?

Thank you.


回答1:


You can use IndexReader.terms() to get an enumeration of all terms that occur in the inverted index. This method returns a TermEnum.



来源:https://stackoverflow.com/questions/4356037/how-to-get-a-list-of-all-tokens-from-solr-lucene-index

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!