.addField("*") didn't work in my case, It returns me 0 with
I tried to get the source but received null from
I'm wondering what I did wrong... I'm using the 0.19.4 client.
On Mon, Jul 30, 2012 at 5:13 PM, Ivan Brusic firstname.lastname@example.org wrote:
You can use wildcards in the field name: .addField("*")
Alternatively, if you have source enabled (the default), you can
extract the fields from the source: SearchHit#getSource().
On Mon, Jul 30, 2012 at 5:10 PM, Yuhan Zhang email@example.com wrote:
In case receiving a certain fields from a doc, I could construct query in
SearchRequestBuilder searchBuilder = client.prepareSearch(
indexName, indexType )
.setQuery( builder )
.setFrom(0).setSize( urls.length );
I'm trying to perform a search query on an index with all the fields
returned without explicitly specifying them.
however, if I left without "addField", it returns docs without any
is there a way I could retrieve this with ES java client?
Senior Software Engineer
(949) 525-4825 Ext: 177
The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or legally
privileged. Inadvertent disclosure of this message does not constitute a
waiver of any privilege. If you receive this message in error, please do
not directly or indirectly print, copy, retransmit, disseminate, or
otherwise use the information. In addition, please delete this e-mail and
all copies and notify the sender.