Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query filter support #17

Closed
nizsheanez opened this issue Dec 26, 2014 · 4 comments
Closed

query filter support #17

nizsheanez opened this issue Dec 26, 2014 · 4 comments

Comments

@nizsheanez
Copy link
Contributor

i use structure of aggregations like this:

"aggs": {
    "all": {
      "global": {},
      "aggs": {
        "filtered_all": {
          "filter": {
            "bool": {
              "must": [
                {
                  "query": {
                    "bool": {
                      "should": [
                        {
                          "multi_match": {
                            "query":"iphone"
                            "type": "cross_fields",
                            "fields": [
                              "name^2",
                              "category^2",
                            ]
                          }
                        }
                      ]
                    }
                  }
                }
              ]
          },
          "aggs": ... //some aggs which use current filters
       }
     }
  }
}

So, is it possible to implement this filter:bool:must:query filter? I can't find something like elastic.NewQueryFilter()

@olivere
Copy link
Owner

olivere commented Dec 26, 2014

Just a quick guess: Is Filter Aggregations what you're looking for? Then we'd have a filter for that.

@olivere
Copy link
Owner

olivere commented Dec 26, 2014

Ha. You're right. The query filter is missing. Will add it later today.

@olivere
Copy link
Owner

olivere commented Dec 26, 2014

663c4ea should add query filter.

@olivere olivere closed this as completed Dec 26, 2014
@nizsheanez
Copy link
Contributor Author

you are awesome fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants