(译)Query SQL

作者: animagus | 来源:发表于2019-08-13 18:09 被阅读0次

    https://www.elastic.co/guide/en/elasticsearch/reference/7.3/query-dsl.html

    Elasticsearch provides a full Query DSL (Domain Specific Language) based on JSON to define queries. Think of the Query DSL as an AST (Abstract Syntax Tree) of queries, consisting of two types of clauses:

    ES提供一个完整的基于JSON定义查询的DSL(特定领域语言)。可以将查询DSL看作一个查询的AST(抽象语法树),由两种子句组成。

    Leaf query clauses
    Leaf query clauses look for a particular value in a particular field, such as the match, term orrange queries. These queries can be used by themselves.

    叶查询子句
    叶查询自居在一个特定的领域查找一个特定的值,例如match、term或range查询。这些查询可以嵌套使用。

    Compound query clauses
    Compound query clauses wrap other leaf or compound queries and are used to combine multiple queries in a logical fashion (such as the bool or dis_max query), or to alter their behaviour (such as the constant_score query).

    复合查询字句
    符合查询子句将其他的叶或符合查询包裹起来,复合查询被用来联合逻辑上的多个查询。

    Query clauses behave differently depending on whether they are used in query context or filter context.

    相关文章

      网友评论

        本文标题:(译)Query SQL

        本文链接:https://www.haomeiwen.com/subject/mjwbjctx.html