Lucene Query Tool (lqt) 是一个命令行工具用来执行 Lucene 查询并对结果进行格式化输出。
使用方法:
02 | usage: LuceneQueryTool [options] |
03 | --analyzer <arg> for query, (KeywordAnalyzer | StandardAnalyzer) |
04 | (defaults to KeywordAnalyzer) |
05 | --fields <arg> fields to include in output (defaults to all) |
06 | -i,--index <arg> index (required) |
07 | --output-limit <arg> max number of docs to output |
08 | -q,--query <arg> (query | %all | %enumerate-fields | |
09 | %enumerate-terms field | %ids id [ id ...] | |
10 | % id - file file ) (required) |
11 | --query-field <arg> default field for query |
12 | --query-limit <arg> max number of query hits to process |
13 | --regex <arg> filter query by regex, syntax is field:/regex/ |
14 | --show-hits show total hit count |
15 | --show- id show Lucene document id in results |
16 | --show-score show score in results |
17 | -- sort -fields sort fields within document |
18 | --suppress-names suppress printing of field names |
19 | --tabular print tabular output (requires --fields with no |