Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

not (Structured Query)

eedeebee edited this page Oct 1, 2012 · 2 revisions

Inverts the matching of a query constructor so documents that don't match the query constructor are returned.

The following query will return documents where the author value is not equal to "Noam Chomsky":

{"not":
    {
        "key": "author"
        "equals": "Noam Chomsky"
    }
}

<not>
    <constraint>
        <key>author</key>
        <equals>Noam Chomsky</equals>
    </constraint>
</not>

Clone this wiki locally