问题
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