# What metafields does storedFields("\_none\_") return?

**URL:** <https://discuss.elastic.co/t/what-metafields-does-storedfields-none-return/200465>\
**Category:** Elasticsearch\
**Created:** [September 20, 2019, 5:02pm UTC](https://discuss.elastic.co/t/what-metafields-does-storedfields-none-return/200465 "2019-09-20T17:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [September 20, 2019, 5:02pm UTC](https://discuss.elastic.co/t/what-metafields-does-storedfields-none-return/200465/1 "2019-09-20T17:02:52Z")

</div>

Can someone explain what metafield does `storedFields("_none")` return? As per the javadoc

> Adds stored fields to load and return (note, it must be stored) as part of the search request.  
> To disable the stored fields entirely (source and metadata fields) use {@code storedField("_none_")}.

But whenever I am sending a request like below

```
SearchRequestBuilder request;
...
request.setSize(config.getScanScrollFetchSize());
request.addSort(FieldSortBuilder.DOC_FIELD_NAME, SortOrder.ASC);
request.setScroll(TimeValue.timeValueMinutes(1));
request.storedFields("_none_");

```

It is giving me the response like below

```
{
  "_scroll_id": "DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAABFjMtc3Y1Rm5PU2pDVi1RM29FVzQyQmcAAAAAAAAAAxYzLXN2NUZuT1NqQ1YtUTNvRVc0MkJnAAAAAAAAAAIWMy1zdjVGbk9TakNWLVEzb0VXNDJCZwAAAAAAAAAEFjMtc3Y1Rm5PU2pDVi1RM29FVzQyQmcAAAAAAAAABRYzLXN2NUZuT1NqQ1YtUTNvRVc0MkJn",
  "took": 126,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": null,
    "hits": [
      {
        "_index": "denorm",
        "_score": null,
        "sort": [
          2
        ]
      }
    ]
  }
}

```

As per the [doc](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping-fields.html) `_index` is also a meta field but I am seeing this in the response.

Can someone let me know what all meta fields are returned when I use `storedField("_none_")` ?

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [September 22, 2019, 11:37am UTC](https://discuss.elastic.co/t/what-metafields-does-storedfields-none-return/200465/2 "2019-09-22T11:37:03Z")

</div>

The same has been asked in [stackoverflow](https://stackoverflow.com/questions/58048816/what-metafields-does-storedfields-none-return-in-elasticsearch) also. But no response there also. Anyone any thoughts on this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2019, 11:37am UTC](https://discuss.elastic.co/t/what-metafields-does-storedfields-none-return/200465/3 "2019-10-20T11:37:05Z")

</div>

Closed on October 20, 2019, 11:37am UTC

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