Elastica php question


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

Any ideas?

(Zachary Tong) #2

Paging @ruflin :slight_smile:

(ruflin) #3

@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?

(system) #4