Collapse dense_vector field in search results

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

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

GET /_search
  "_source": {
    "excludes": [ "your_dense_vector_field" ]
  "query": {
    "term": {
      "": "kimchy"

Does that solve your issue?

1 Like

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