incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bykov <m.by...@gmail.com>
Subject case-sensitive search
Date Fri, 12 Aug 2011 05:25:21 GMT
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://m.bykov@jabber.ru

Mime
View raw message