Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access fields from the query results #1309

Open
Leaf-Lin opened this issue Sep 8, 2023 · 0 comments
Open

Access fields from the query results #1309

Leaf-Lin opened this issue Sep 8, 2023 · 0 comments

Comments

@Leaf-Lin
Copy link
Contributor

Leaf-Lin commented Sep 8, 2023

The problem

In Elasticsearch, a runtime field may be used to display fields not currently available in the documents.

Details

As can be seen from the example given in https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime-override-values.html

  • hits._source.measures.voltage: 4.2
  • hits.fields.measures.voltage: 7.14

It would be useful to have the ability to display and filter on this field.

{
  ...
  "hits" : {
    "total" : {
      "value" : 2,
      "relation" : "eq"
    },
    "max_score" : 1.0296195,
    "hits" : [
      {
        "_index" : "my-index-000001",
        "_id" : "F1BeSXYBg_szTodcYCmk",
        "_score" : 1.0296195,
        "_source" : {
          "@timestamp" : 1516383694000,
          "model_number" : "HG537PU",
          "measures" : {
            "voltage" : 4.2
          }
        },
        "fields" : {
          "measures.voltage" : [
            7.14
          ]
        }
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant