c# - Getting complete value from ElasticSearch query -



c# - Getting complete value from ElasticSearch query -

i have next construction on elasticsearch:

{ _index: 3_exposureindex _type: exposuresearch _id: 12738 _version: 4 _score: 1 _source: { name: test2_update description: createuserid: 8 sourceid: null id: 12738 exposureid: 12738 createdate: 2014-06-20t16:18:50.500 updatedate: 2014-06-20t16:19:57.547 updateuserid: 8 } fields: { _parent: 1 } }

i trying both, info in _source in fields, when run query:

{ "query": { "terms": { "id": [ "12738" ] } } }

all values contained in _source, whereas, if run query:

{ "fields": [ "_parent" ], "query": { "terms": { "id": [ "12738" ] } } }

then fields. there way both? grateful help.

you shoud able specify "_source" in "fields"

example:

{ "fields": [ "_parent", "_source" ], "query": { "terms": { "id": [ "12738" ] } } }

c# .net elasticsearch plainelastic.net

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -