我想看看哪些术语用于索引。这主要是为了调试,以防我需要在将文档发送到 Whoosh 之前对它们进行一些额外的预处理。一个 list 就好了。是否有一个变量可以给我这个(可能在 whoosh.index
中)?
最佳答案
用途:
-
whoosh.reading.IndexReader.all_terms()
Yields (fieldname, text) tuples for every term in the index.
关于python - 如何获取 Whoosh 索引中所有术语的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35565900/