incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Metin Akat <>
Subject Re: Search feature ?
Date Sun, 17 Jan 2010 13:29:04 GMT
Depends on what you mean by "search". If you want "fulltext search",
then yes, your best choice so far is couchdb-lucene. But if you just
want to find documents by their properties, then you don't need to use
some external tool.
For example I use this function to "search" for animals in my database.
function (doc) {
    if (doc.doc_type == 'Animal') {
            emit(doc.ear_mark, doc);
            emit(doc.belt, doc);
            emit(doc.birth_date, doc);
the user starts typing (either of these properties) in a text field
and is able to find the animal she is looking for.

On Sun, Jan 17, 2010 at 3:13 PM, Nicolas Steinmetz <> wrote:
> Hi,
> Was hacking back on some of my couchdb code and I was wondering how would I
> implement some basic search features. All information I can gather around
> the web leads me to thinking that there is no basic search within a vanillia
> couchdb instance. Search implies some third parties like lucene (couchdb
> lucence), xapian & co.
> How do you implement some basic search features in your apps ?
> Thanks,
> Nicolas
> --
> Nicolas Steinmetz
> -

View raw message