couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Jelsma" <mar...@buyways.nl>
Subject Re: couchdb-lucene : stemming analyzer configuration question
Date Wed, 17 Feb 2010 23:45:45 GMT
Hi,


You cannot the wildcard as a prefix, check Lucene's query parser [1] for
more information. Don't worry about the version mentioned, you use a 1.9.x
version.

[1]: http://lucene.apache.org/java/2_0_0/queryparsersyntax.html

Cheers,


go canal said:
> thanks. I checked, but it can not support '*a' query --- * and ? can be
> the first char. I can not figure out how to query 'find doc that contain
> a' for example.
>  rgds,
> canal
>
>
>
>
> ________________________________
> From: Ladislav Thon <ladicek@gmail.com>
> To: user@couchdb.apache.org
> Sent: Wed, February 17, 2010 11:25:19 PM
> Subject: Re: couchdb-lucene : stemming analyzer configuration question
>
>> I am able to query a word, but not able to match partial word. For
>> example, I have a 'name' field with a value 'alex'. I can query the
>> documents if I use 'q=alex'. But I am not able to get any documents if
>> I use 'q=a'.
>>
>
> Lucene supports wildcard queries, so you might want to use 'q=a*'. Don't
> know anything about couchdb-lucene, though.
>
> LT
>
>
>
>




Mime
View raw message