弹性搜索查询字符串的解析器

斯塔西克

我想知道是否有可用的语法能够解析发送到Elastic Search query_string API的查询字符串

参考在这里:https : //www.elastic.co/guide/zh-CN/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax

我更喜欢EBNF。我目前使用Python是为了以防万一。

保罗·麦格

Whoosh(https://whoosh.readthedocs.io/en/latest/index.html)是使用Lucene查询解析器的纯Python搜索,您可以将其用于自己的应用。我认为它在pyparsing(https://github.com/pyparsing/pyparsing/blob/master/examples/lucene_grammar.py)中利用了Lucene解析器示例。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章