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.lucene.index import IndexWriterConfig, IndexWriter, DirectoryReader from org.apache.lucene.store import SimpleFSDirectory from java.nio.file import Paths from org.apache.lucene.document import Document, Field, TextField from org.apache.lucene.util import BytesRefIterator index_path = "./index" lucene.initVM() analyzer =