Last active
August 29, 2015 14:06
-
-
Save bjinwright/02291995fd8c88714679 to your computer and use it in GitHub Desktop.
Cloudant Indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here are the three JSON documents that I used to create the indexes. | |
{ | |
"index": { | |
"fields": ["price","name"] | |
}, | |
"name" : "price-name-index", | |
"type" : "json" | |
} | |
{ | |
"index": { | |
"fields": ["price"] | |
}, | |
"name" : "price-index", | |
"type" : "json" | |
} | |
{ | |
"index": { | |
"fields": ["name"] | |
}, | |
"name" : "name-index", | |
"type" : "json" | |
} | |
Here is the selector query: | |
{'selector': {'name': 'Elliott'}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment