Adding fields to a filter context


I'm working on a filter query to speed up some searches but I only want to return certain fields. I've been running into some issues adding the fields I want to display to my query. This is what I have working:

  "query": {
    "bool": {
        "match": {
             "": "producer"
            "filter": [
        { "term":  { "project": "closed" }}

There are a number of fields in the document and I only want to return fields:, 'cost.initial, cost.adjusted`


Just bumping for visibility

See filter_path functionality: Common options | Elasticsearch Guide [7.13] | Elastic


Thank you!


I realize that isn't going to work. I'm trying to build this query as a saved search for a more performant vizualization.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.