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 <[email protected]> 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
> http://www.steinmetz.fr - http://nicolas.steinmetz.fr/
>