incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From faust 1111 <faust...@gmail.com>
Subject CouchDB with lucene get uniq tags
Date Wed, 21 Apr 2010 10:43:23 GMT
I have
Contents
   tags

i try implement full text search in tags for autocompleter
i it possible with lucene?
i need get list of uniq tags

now i try

function(doc) {
    if(doc.tags) {
      var ret = new Document();

      doc.tags.forEach(function(tag) {
        ret.add(tag, {"store": "yes"});
      });

      return ret;
}

but its not work for me.
its return me all docs + all tags related, not only i search*.

Mime
View raw message