database - couch db - URI address -


i have bd "list" products like:

{    "_id": "car1",    "_rev": "1-6e192e3f87447ec187052941cf365071",    "price": "950",    "shop": "shop1" } 

i have created view "shop" check products/cars have @ 1 of 3 shops:

  function(doc) {   emit(doc.shop,{product:doc._id}); } 

reduce function

function (key, values) {return (values);} 

now receive same uri did this:

...\curl -x .../list/_design/shop/_view/shop?key="shop1" 

why doesn't work? questions like: ...\curl -x .../list/_all_docs works views why can't result view?

if function above have written, it's invalid javascript view crash , return nothing. need quotes around product.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -