elastic / elastic/elasticsearch-dsl-ruby

Not able to specify missing_value in aggregation

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
18
Forks
16
PR merge metrics
No merged PRs in 30d

Description

`aggregations: {
"aggregation_name": {
"terms": {
"field": "field_name",
"size": number,
"missing": "field value"
}
}
}`

ES allows to assign a value to records with missing values, currently not possible to generate this query.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files or tests. Start by locating the Ruby aggregation implementation for terms and its existing serialization tests, then compare their output with the Elasticsearch example in the issue; the work is done when a terms aggregation can emit the requested missing value.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, ruby
Domain
backend, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.