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 DSL: Simplify not filter to accept the filter directly, without a wrapping filter element #992

Closed
kimchy opened this issue Jun 2, 2011 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Jun 2, 2011

For example:

{
    "filtered" : {
        "query" : {
            "term" : {
                "name.first" : "shay"
            }
        },
        "filter" : {
            "not" : {
                "term" : {
                    "name.first" : "shay1"
                }
            }
        }
    }
}

Note, filter wrapping element is still needed if wanting to use the _cache or _name one.

@kimchy kimchy closed this as completed in 0f1655c Jun 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant