Hi All,
I have the a query that successfully run on rest api as following :
{
"query": {
"filtered" : {
"query" : {
"query_string" : {
"query" : "kimchy"
}
},
"filter" : {
"term" : { "message" : "trying out", "post_date" : "2009-11-15T14:12:12"}
}
}
}
}
but how i could replicate that in java code ? I m trying to build the filterTerm by
TermFilterBuilder termfilter = FilterBuilders.termFilter("TYPE_ID", "2");
however i can't find a way to set mutiple fields with terms.
Thanks.
Cyruil