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

or (Structured Query)

isubiker edited this page Nov 11, 2011 · 1 revision

Combines any number of query constructors together so that if any of them are satisfied the document will be returned in the results.

The following query will return documents where the author value equals "Noam Chomsky" or the incorrectly spelled "Norm Chomsky":

{"or": [
    {
        "key": "author"
        "equals": "Noam Chomsky"
    },
    {
        "key": "author"
        "equals": "Norm Chomsky"
    },
]}

<or>
    <constructor>
        <key>author</key>
        <equals>Noam Chomsky</equals>
    </constructor>
    <constructor>
        <key>author</key>
        <equals>Norm Chomsky</equals>
    </constructor>
</or>
Clone this wiki locally