简体   繁体   English

查询Lucene索引文件

[英]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 - Lucene Index Toolbox Luke -Lucene索引工具箱

Luke is a handy development and diagnostic tool, which accesses already existing Lucene indexes and allows you to display and modify their content in several ways Luke是一个方便的开发和诊断工具,它可以访问现有的Lucene索引,并允许您以多种方式显示和修改其内容。

您可以使用Luke或以编程方式使用IndexReader.getFieldNames()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM