[英]Querying a Lucene index file
I'm trying to query a Lucene index file through QueryParser. 我正在尝试通过QueryParser查询Lucene索引文件。 However I would like to see the format of the index file before querying it. 但是,我想在查询索引文件之前先查看它的格式。 Is there a way to lookup the structure of a Lucene index file, sort of like how I'm able to lookup the structure of a regular SQL table? 有没有办法查找Lucene索引文件的结构,就像我如何查找常规SQL表的结构一样?
The reason is that I haven't built this index file myself and would like to get my way around it before querying it. 原因是我自己尚未构建此索引文件,并且想在查询之前解决它。
您可以使用Luke或以编程方式使用IndexReader.getFieldNames() 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.