I don't have a specific analyzer declared, so it'll be the default one. 

Here's the design document:
{
   "_id": "_design/foo",
   "_rev": "4-9d0eb8eba0080e61952317efd9f55ebc",
   "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: Sebastian Cohnen <[email protected]>
To: [email protected]
Sent: Tue, August 10, 2010 3:05:04 PM
Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer 
problems)

what analyzer are you using? can you provide the ddoc? have you tried to search 
for the single term in lowercase?

Best

Sebastian

On 10.08.2010, at 21:01, Timothy Washington 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
> 

Reply via email to