Hello ,
I'm currently using elasticsearch NEST client v 6.0.0 with ES v6.1.2.
When i use NEST search request with source filtering to include the specified fields only in the returned documents, the source for each document will be empty!
Here is the debug info object i've got :
Valid NEST response built from a successful low level call on POST: /indexName/typeName/_search?
typed_keys=true
# Audit trail of this API call:
- [1] HealthyResponse: Node: http://ESipAddress:9200/ Took: 00:00:00.0312084
# Request:
{"from":0,"size":50,"_source":{"includes":["ID","Name","Description","Category"]}}
# Response:
{"took":13,"timed_out":false,"_shards":{"total":2,"successful":2,"skipped":0,"failed":0},"hits":
{"total":154919,"max_score":1.0,"hits":
[{"_index":"indexName","_type":"typeName","_id":"45484","_score":1.0,"_source":{}} }}
And I'v noticed something, the following search request will return zero hits (its a valid request) when it was done via elastic NEST client but when i try to execute it from elastic Head on GET not POST the results are returned as expected . Here is the debug info of the request made:
Valid NEST response built from a successful low level call on POST: /content/_search?typed_keys=true
# Audit trail of this API call:
- [1] HealthyResponse: Node: http://localhost:9200/ Took: 00:00:00.0937397
# Request:
{"from":0,"size":50,"_source":true,"query":{"bool":{"must":[{"terms":{"ClassID":
["5","419","422","442","80","85","434","436","439","87","76"]}}]}}}
# Response:
{"took":16,"timed_out":false,"_shards":{"total":6,"successful":6,"skipped":0,"failed":0},"hits":
{"total":0,"max_score":null,"hits":[]}}
Any thing may help ?