Searching only document id

hi to all.

i want to search only the document id of search results, due to huge size of documents. i don't want to have the complete document.

thanks.

Hi @khodael_reza,

You can control to include/exclude the complete document with _source parameter.

See : http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html

Does it make sense?

1 Like

thank you, yes was solved my problem