# Collapse dense\_vector field in search results

**URL:** https://discuss.elastic.co/t/collapse-dense-vector-field-in-search-results/315517
**Category:** Elasticsearch
**Created:** [September 30, 2022, 5:54am UTC](https://discuss.elastic.co/t/collapse-dense-vector-field-in-search-results/315517 "2022-09-30T05:54:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ruslaniv](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@ruslaniv](https://discuss.elastic.co/u/ruslaniv)
#### Post date: [September 30, 2022, 5:54am UTC](https://discuss.elastic.co/t/collapse-dense-vector-field-in-search-results/315517/1 "2022-09-30T05:54:37Z")

</div>

Hi!  
Is it possible to collapse or hide a `dense_vector` field in the results returned by ES?

When developing, I have to send a lot of queries to ES and then inspect the results and it is getting really tiresome to scroll through 768 lines of numbers to see other fields, so it would be very nice to be able to collapse this field to like 1 or 2 elements.

I know I can specify which fields must be returned from the search, but I'd like to specify which fields NOT to return

---

<div class="post-metadata">

### Author: ![NashSLX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nashslx/32/47551_2.png) [@NashSLX](https://discuss.elastic.co/u/NashSLX)
#### Post date: [September 30, 2022, 8:00am UTC](https://discuss.elastic.co/t/collapse-dense-vector-field-in-search-results/315517/2 "2022-09-30T08:00:57Z")

</div>

The \_source parameter also has an option to exclude certain fields:

```auto
GET /_search
{
  "_source": {
    "excludes": ["your_dense_vector_field"]
  },
  "query": {
    "term": {
      "user.id": "kimchy"
    }
  }
}

```

Does that solve your issue?

---

<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 28, 2022, 8:01am UTC](https://discuss.elastic.co/t/collapse-dense-vector-field-in-search-results/315517/3 "2022-10-28T08:01:47Z")

</div>

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