Lucene 查詢工具:LQT

jopen 11年前發布 | 16K 次閱讀 Lucene 搜索引擎

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)

項目主頁:http://www.baiduhome.net/lib/view/home/1381034339267

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!