# API get all values of a field, without score

**URL:** <https://discuss.elastic.co/t/api-get-all-values-of-a-field-without-score/225322>\
**Category:** Elasticsearch\
**Created:** [March 27, 2020, 2:44am UTC](https://discuss.elastic.co/t/api-get-all-values-of-a-field-without-score/225322 "2020-03-27T02:44:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [March 27, 2020, 2:44am UTC](https://discuss.elastic.co/t/api-get-all-values-of-a-field-without-score/225322/1 "2020-03-27T02:44:30Z")

</div>

Hi, Im trying to get all the values of hostgroup field, but without score, the following query, returns only the best matches, I have tried using bool, but still the best matches

```auto
GET myindex/_search
{
    "_source": ["hostgroup"],
    "size": 10000
}

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 27, 2020, 4:27am UTC](https://discuss.elastic.co/t/api-get-all-values-of-a-field-without-score/225322/2 "2020-03-27T04:27:34Z")

</div>

Have a look at the terms aggregation.

---

<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:** [April 24, 2020, 4:27am UTC](https://discuss.elastic.co/t/api-get-all-values-of-a-field-without-score/225322/3 "2020-04-24T04:27:34Z")

</div>

Closed on April 24, 2020, 4:27am UTC

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