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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.