Elastic search java API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Elastic search java API

Rakesh Jaligama
This post has NOT been accepted by the mailing list yet.
i am finding difficult to get the elastic search java api query. i have a query which is working fine in the elastic search but when i implement the same query using java. I am getting empty list in the return.

please find the below elastic search query

{
"query":{
"multi_match":{
"query":"Rakesh Jaligama",
"type":"cross_fields",
"fields":["firstName","lastName","sex"],
"operator":"and"
}
}
}

please help me to write above query in elastic search java api.

any help greatly appeciated.