Hello everyone,
i am new to elastic and i am currently trying to make my java api return SearchResponse from a query but i get
an exception whose message doesn't print anything so i can't understand what is going on. I have a json query
which is this
{
"min_score": 0.2,
"query": {
"multi_match": {
"query": "θέατρο",
"analyzer": "search",
"fields": [
"name",
"description",
"category",
"subCat1",
"subCat2",
"subCat3"
],
"fuzziness" : "AUTO",
"prefix_length" : 2
}
}
}
and it works fine in kibana but not in my code. The way i am trying to do it is this one:
r = restClient.prepareSearch("index")
.setTypes("event")
.setQuery(QueryBuilders.wrapperQuery("my source here")).get();
and it just throws an exception saying all shards failed. Any ideas? What am i missing?