I am looking to translate this code to ElasticaPHP
{
"constantScore" : {
"filter" : {
"query" : {
"query_string" : {
"query" : "this AND that OR thus"
}
}
}
}
}
I can not find the function to add a query_string to an Aggregation_Filter
@minniek Sorry for the late reply, was on vacation.
About your question above: You can use the setFilter method to add any query (including QueryString as long as it is of the type AbstractQuery. Perhaps you can share some of your Elastica code you tried and didn't work?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.