You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Robert Newson <ro...@gmail.com> on 2010/08/10 21:04:33 UTC
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
<ti...@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
>
>
Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer problems)
Posted by Timothy Washington <ti...@yahoo.ca>.
>>> 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 <ro...@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
<ti...@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
>
>