Hit.getSource() returns only meta and not associated document


(gaurav.j0102) #1

Hello,

I am using elastic search 1.1.0 and I am facing issue that when I do
hit.getSource() it returns only meta and not document associated with it.
Could you please tell me why I do not get document?
To add more even in Elastic search head plugin the search result in UI on
specific index does not display document. It only displays meta like
{meta={id=2, rev=7-0007035905ffb3aa0000000000000000, flags=0,
expiration=0}}

Please tell me how can I get complete document as well.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7e6b2828-9402-4658-8a71-8ab007bc9a36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

Did you disable _source?
Did you ask for "fields" in your query?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 2 mai 2014 à 11:19:13, Gaurav Joshi (gaurav.j0102@gmail.com) a écrit:

Hello,

I am using elastic search 1.1.0 and I am facing issue that when I do hit.getSource() it returns only meta and not document associated with it.
Could you please tell me why I do not get document?
To add more even in Elastic search head plugin the search result in UI on specific index does not display document. It only displays meta like {meta={id=2, rev=7-0007035905ffb3aa0000000000000000, flags=0, expiration=0}}

Please tell me how can I get complete document as well.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7e6b2828-9402-4658-8a71-8ab007bc9a36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.5363671a.57e4ccaf.2280%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.


(system) #3