Lucene 查询工具:LQT
Lucene Query Tool (lqt) 是一个命令行工具用来执行 Lucene 查询并对结果进行格式化输出。
-
scripting and ad-hoc Unix pipelines
-
recording queries and results in bug reports, emails, etc. without the need for screenshots
-
working with non-ASCII characters on remote machines without dealing with X fonts
-
avoid long Luke startup time for large indexes
使用方法:
$ ./lqt usage: LuceneQueryTool [options] --analyzer <arg> for query, (KeywordAnalyzer | StandardAnalyzer) (defaults to KeywordAnalyzer) --fields <arg> fields to include in output (defaults to all) -i,--index <arg> index (required) --output-limit <arg> max number of docs to output -q,--query <arg> (query | %all | %enumerate-fields | %enumerate-terms field | %ids id [id ...] | %id-file file) (required) --query-field <arg> default field for query --query-limit <arg> max number of query hits to process --regex <arg> filter query by regex, syntax is field:/regex/ --show-hits show total hit count --show-id show Lucene document id in results --show-score show score in results --sort-fields sort fields within document --suppress-names suppress printing of field names --tabular print tabular output (requires --fields with no multivalued fields)
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!