Multiple key query to CouchDB

Svetoslav Nedkov snedkov at asteasolutions.com
Fri Feb 26 14:53:09 UTC 2010


Hi again,

Here is the link (from the CouchDB wiki):

http://wiki.apache.org/couchdb/HTTP_view_API


Section "Querying options"


Regards,

Svetoslav

Colin Clark wrote:
> Sveto,
>
> On 2010-02-26, at 9:32 AM, Svetoslav Nedkov wrote:
>
>   
>> In short the solution is to make a POST request to the view and as data supply keys in the format {"keys": ["key1", "key2"..."keyn"]}.
>>
>> Here is an example:
>>
>>   curl -X POST http://142.150.154.59:5984/mccord/_design/artifacts/_view/viewByObjectCode \
>>       -d '{"keys":[{"objectCode":"01","lang":"en"},{"objectCode":"09","lang":"en"},{"objectCode":"05","lang":"en"}]}'
>>
>>
>> I hope this will allow us to remove the Lucene view completely.
>>     
>
> Super interesting! Why a POST, I wonder? Can you send us a link to the documentation where you found this?
>
> Colin
>
> ---
> Colin Clark
> Technical Lead, Fluid Project
> http://fluidproject.org
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://fluidproject.org/pipermail/fluid-work/attachments/20100226/1a47ecd9/attachment.html>


More information about the fluid-work mailing list