opensearch-project/opensearch-benchmark-workloads

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

Aperta

#617 aperta il 21 apr 2025

 (1 commento) (0 reazioni) (0 assegnatari)Python (137 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (33 stelle)
Metriche merge PR
 (Merge medio 5g 19h) (2 PR mergiate in 30 g)

Descrizione

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"
}

Guida contributor