Interface RangeCondition

返回包含所提供范围内术语的文档。

Example


import * as es from 'es'
let client=es.newClient('axis_esClient')
let range: es.RangeCondition = {
"postData": {
"from": 1,
"to": 10,
include_lower: true,
include_upper: true,
boost:3.0
}
}
let querydsl:es.Query={
"range":range
}
let cnt = client.updateByQuery("indexName", querydsl, "newScript")
interface RangeCondition {
    [name: string]: {
        boost?: number;
        format?: string;
        from?: any;
        include_lower: boolean;
        include_upper: boolean;
        relation?: string;
        time_zone?: string;
        to?: any;
    };
}

Indexable

[name: string]: {
    boost?: number;
    format?: string;
    from?: any;
    include_lower: boolean;
    include_upper: boolean;
    relation?: string;
    time_zone?: string;
    to?: any;
}

name:希望查询的字段名

  • Optional boost?: number

    boost:浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。

  • Optional format?: string

    format:查询中的日期格式

  • Optional from?: any
  • include_lower: boolean
  • include_upper: boolean
  • Optional relation?: string

    relation:指示范围查询如何匹配范围字段的值。

  • Optional time_zone?: string

    time_zone:date格式字段的时区

  • Optional to?: any