incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Washington <timothyjwashing...@yahoo.ca>
Subject Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer problems)
Date Tue, 10 Aug 2010 19:16:38 GMT

>>> couchdb-lucene-0.6 

>>> fulltext 
   "fulltext": {
       "by_title": {
           "index": "function(doc) { var ret=new Document(); ret.add(doc.title); 
return ret }"
       },
       "by_source": {
           "index": "function(doc) { var ret=new Document(); 
ret.add(doc.source); return ret }"
       },
       "by_all": {
           "index": "function(doc) {
           var ret=new Document();
           ret.add(doc.title);
           ret.add(doc.body);
           ret.add(doc.source);
           return ret; 
           }"
       }
   }



Tim



________________________________
From: Robert Newson <robert.newson@gmail.com>
To: user@couchdb.apache.org
Sent: Tue, August 10, 2010 3:04:33 PM
Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer  
problems)

Can you paste the "fulltext" section of the related design document
and also name the version of c-l you are using?

Thanks,
B.

On Tue, Aug 10, 2010 at 8:01 PM, Timothy Washington
<timothyjwashington@yahoo.ca> wrote:
> Our team is using couchdb-lucene. We have the tool installed, configured and
> indexing properly. And our full field searching works properly.
>
>
> But if we want to search for one one word in a field ('title', or 'summary', 
>for
> example), we get no results. So, on a document with the title "WHAT DO YOU 
WEAR
> TO GLAM UP YOUR LOOK FOR A SPECIAL EVENT?", document A) works, but B) does 
not.
>
>
> A) wget 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?q=title:WHAT
> DO YOU WEAR TO GLAM UP YOUR LOOK FOR A SPECIAL EVENT?'
> B) wget 
'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?q=title:GLAM'
>
>
> We're playing around with the settings - a different index analyzer maybe? But
> I'm sure we're just missing a basic switch/lever somewhere. Anyone have any
> knowledge here?
>
>
> Thanks
> Tim
>
>



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message