opensearch-project/opensearch-benchmark-workloads

[FEATURE] Adding match query on high cardinality field in Big5

开放

#617 创建于 2025年4月21日

 (1 条评论) (0 个反应) (0 位负责人)Python (137 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (33 个星标)
PR 合并指标
 (平均合并 5天 19小时) (30 天内合并 2 个 PR)

描述

Is your feature request related to a problem?

When upgrading OpenSearch to Lucene 9.12.0 for 2.18 release, we caught a regression in Lucene from the keyword-in-range operation in Big5. It was related to query not reading skip data and treating non-competitive docs as competitive. See https://github.com/apache/lucene/issues/14445 for details.

"query": {
    "bool": {
        "must": [{
            "range": {
                "@timestamp": {
                    "gte": "2023-01-01T00:00:00",
                    "lt": "2023-01-03T00:00:00"
                }
            }
        }, {
            "match": {
                "process.name": "kernel"
            }
        }]
    }
}

The regression could have been identified if just the match query was an operation in itself.

What solution would you like?

Add match query on a high cardinality field process.name as a separate operation.

"match": {
    "process.name": "kernel"
}

贡献者指南