Hi,

I am searching couchdb by attibute values with POST request {"keys":
["key1", "key2", ...]}

Here is request

        RestClient.post "#{DB}/_design/paradigm/_view/by_word",
{"keys"=>["#{word}"]}.to_json, :content_type => :json, :accept =>
:json

and here is view function:

       "by_word" : {
            "map" : "function(doc) { if (doc.dict) { emit(doc.dict, doc);  }}"
        }

It works perfect, but search is case-insensitive in that form.

How case-sensitive search can be done?


-- 
М.

http://diglossa.org
xmpp://[email protected]

Reply via email to