Returning doc values with document API?

Hi,

Search API has the possibility to return doc value fields:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-docvalue-fields.html
Is it possible to do the same, but with the document API (simple GET)?

Unfortunately not. The Document GET implementation does not touches docvalues related data structures.

But you can combine the docvalue_fields option with an Ids Query.

The biggest problem with query is it's not realtime... I've opened an issue and the conclusion there was the doc API should be converted to the internal search implementation while maintaining the realtime aspects.

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