incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer problems)
Date Tue, 10 Aug 2010 20:30:00 GMT
Oh, and also output of wget http://172.16.114.129:5985/

Thanks,
B.

On Tue, Aug 10, 2010 at 9:13 PM, Robert Newson <robert.newson@gmail.com> wrote:
> Can you also report the result of wget
> 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all' please?
>
> I pushed 0.5.5 today. It (and 0.6-SNAPSHOT) have a fix related to your
> problem, assuming it's this. The requested info above will help me.
>
> Also, if you can jump on #couchdb on freenode, we can do this a bit
> more interactively.
>
> B.
>
>
> On Tue, Aug 10, 2010 at 9:06 PM, Timothy Washington
> <timothyjwashington@yahoo.ca> wrote:
>> Oh that's interesting. I was just working off of the latest github master. I'll
>> try one of the downloads. In the meantime, here's the results with the debug:
>>
>> baron@baron-dev:wget
>> 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?debug=true&q=title:GLAM'
>>
>> ...
>> baron@baron-dev:~/Baron$ cat 'by_all?debug=true&q=title:GLAM'
>> {
>>  "q": "title:glam",
>>  "plan": "TermQuery(title:glam,boost=1.0)",
>>  "analyzer": "org.apache.lucene.analysis.standard.StandardAnalyzer",
>>  "etag": "2f07e40455e",
>>  "skip": 0,
>>  "limit": 25,
>>  "total_rows": 0,
>>  "search_duration": 0,
>>  "fetch_duration": 0,
>>  "rows": []
>> }
>>
>>
>>
>> Tim
>>
>>
>>
>>
>> ________________________________
>> From: Robert Newson <robert.newson@gmail.com>
>> To: user@couchdb.apache.org
>> Sent: Tue, August 10, 2010 3:47:46 PM
>> Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer
>> problems)
>>
>> can you add debug=true to the query arguments and paste the result?
>>
>> Note that 0.6 is not released yet, I'd encourage you to work from a
>> release or the 0.5.x branch.
>>
>> B.
>>
>> On Tue, Aug 10, 2010 at 8:19 PM, Timothy Washington
>> <timothyjwashington@yahoo.ca> wrote:
>>>
>>> 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 <sebastiancohnen@googlemail.com>
>>> To: user@couchdb.apache.org
>>> 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
>>>>
>>>
>>>
>>
>>
>>
>

Mime
View raw message