I've tested it with ES 1.1 and the described behaviour is gone. So the Java
API does a correct interpretation of the JSON search result.
On Thursday, January 30, 2014 11:23:04 PM UTC+1, Martin Pape wrote:
>
> Thanks for the information. I still have some months till production, so
> might workar
Thanks for the information. I still have some months till production, so
might workaround now and wait for ES 1.0. Anyone know then ES 1.0 is
planned to be release?
BR - Martin
On Thursday, January 30, 2014 6:54:58 PM UTC+1, Binh Ly wrote:
>
> Martin, I have verified this behavior and it still
Martin, I have verified this behavior and it still pesists in 0.90.10. I
checked the latest ES master build at it indeed returns 2 values in the
List as expected so I am expecting it to behave as you expect in ES 1.0.
For now, what it does is it returns a single item inside the List, but that
i
If you want only some fields, you can use that:
https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java#L415-415
HTH
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 30 janvier 2
Hi and thanks for the reply.
>I guess you did not ask for specific fields in your query so only _source
is returned by default.
No, I was specifying the fields to return. "type" was one of them.
>You can get the full Json document back
Yes, this is where I saw what both values were in the search
I guess you did not ask for specific fields in your query so only _source is
returned by default.
You can get the full Json document back. Have a look at
https://github.com/elasticsearchfr/hands-on/blob/answers/src/test/java/org/elasticsearchfr/handson/ex2/SearchTest.java#L392
--
David Pil
Hi,
the json (logged with SearchResponse.toString()) of my search result looks
like this:
...
"title": "abc, cdf Systemfunktionen",
* "type": [*
* "abc",*
* "cdf"*
* ]*
...
so field: type is