Skip to content Skip to sidebar Skip to footer

How To Get A List Of All Tokens From Lucene 8.6.1 Index Using Pylucene?

I have got some direction from this question. I first make the index like below. import lucene from org.apache.lucene.analysis.standard import StandardAnalyzer from org.apache.luc

Solution 1:

I found that the below works from here and from test_FieldEnumeration() in the test_Pylucene.py file which is in pylucene-8.6.1/test3/.

for term in BytesRefIterator.cast_(terms_enum):
    print(term.utf8ToString())

Happy to accept an answer that has more explanation than this.

Post a Comment for "How To Get A List Of All Tokens From Lucene 8.6.1 Index Using Pylucene?"