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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?group=true' | |
| {"rows":[ | |
| {"key":"","value":53}, | |
| {"key":"107.5 Flying Corporation","value":1}, | |
| {"key":"1200","value":1}, | |
| {"key":"1977 COLFER-CHAN","value":1}, | |
| {"key":"1ST FTR GP","value":1}, | |
| {"key":"2000 McCoy","value":1}, | |
| {"key":"2001 MCGIRL","value":1}, | |
| {"key":"2003 Nash","value":1}, |
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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make' | |
| {"rows":[ | |
| {"key":null,"value":68387} | |
| ]} |
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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?key="Boeing"' | |
| {"rows":[ | |
| {"key":null,"value":771} | |
| ]} | |
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?key="Airbus"' | |
| {"rows":[ | |
| {"key":null,"value":13} | |
| ]} |
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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?reduce=false&key="Airbus"' | wc -l | |
| 15 | |
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?reduce=false&key="Boeing"' | wc -l | |
| 773 |
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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/make?reduce=false&key="Cessna"&limit=10' | |
| {"total_rows":68387,"offset":13905,"rows":[ | |
| {"id":"0fedbabcd21f15785750457f8300324c","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f83003a2f","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f830060ec","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f83006bfb","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f8300a5ae","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f8300e15d","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f830162b7","key":"Cessna","value":1}, | |
| {"id":"0fedbabcd21f15785750457f8301a3a4","key":"Cessna","value":1}, |
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
| curl -X GET http://mlmiller.cloudant.com/planes/_design/example |
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
| loader = FileSystemDocsLoader('_design/') | |
| loader.sync(db, verbose=True) |
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
| function(doc) { | |
| emit(doc.Make, null); | |
| } |
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
| curl -X GET 'http://mlmiller.cloudant.com/planes/_all_docs?limit=1&include_docs=true' | python -m json.tool |
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
| curl -X GET 'http://<usr>:<pwd>@<usr>.cloudant.com/planes/_all_docs?limit=1&include_docs=true' | python -m json.tool |