When you do a search, it will return your full _source document by default. If you supplied a value for the text field at index time, then the text field is included in the returned _source. If you supply some other field at index time, then that field will also be returned from the _source. The best way to try this is to actually work with the REST API. It allows you to quickly and interactively test things before you write your Java code and also it gives you a better understanding of how your Java code would behave. :)
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4f32b40f-5807-439c-b44c-c9090ebcd02e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
