You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However looking at the SearchSource struct I can only specify "doc_value" fields and "stored_fields" however I can't seem to find how to specify just "fields" field e.g. from the ES example:
The fields parameter has been replaced by stored_fields. The stored_fields parameter will only return stored fields — it will no >longer extract values from the _source
However manually constructing the JSON struct and posting it directly to ES using curl works as expected using "fields" in Elastcisearch 7.x
As stated here, this feature is in beta and probably has not too much to do with the thread mentioned above. It's a bit like FetchSourceContext which allows to include/exclude certain fields, but with the benefit of what's being said in the 2nd paragraph.
Hey, checking to see if "fields" is still planning on being supported. There is a scenario that we must use fields instead of _source to avoid too_complex_to_determinize_exception. @olivere
Using fields is typically better
These options are usually not required. Using the fields option is typically the better choice, unless you absolutely need to force loading a stored or docvalue_fields.
Uh oh!
There was an error while loading. Please reload this page.
Which version of Elastic are you using?
[x ] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)
Please describe the expected behavior
I would like to achieve the following:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html
However looking at the SearchSource struct I can only specify "doc_value" fields and "stored_fields" however I can't seem to find how to specify just "fields" field e.g. from the ES example:
The text was updated successfully, but these errors were encountered: