How to implement JSON for searching data from elasticsearch

Have a look here: GitHub - elasticsearchfr/hands-on: Hands On Lab

It should help you to start.
Answers are in answers branch: GitHub - elasticsearchfr/hands-on at answers

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 1 nov. 2012 à 13:43, mohsin husen smhdiu@gmail.com a écrit :

Hello all,

i am new to elasticsearch and lucene.

i have following json string that i want to get parse from Elasticsearch.

{
"fields": [
"email",
"firstName",
"lastName"
],

"query": {
"query_string": {
"fields": [
"email","firstName","email"
],
"query": "Jelena @gmail.com",
"use_dis_max": true
}
}
}

just want to know the method to pass this string to java api.
any sample code in java api will be much appreciated.

Thanks in advanced
Mohsin

--

--