Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # user - using character '%' in queries (Lucene v3.1.0)


Copy link to this message
-
Re: using character '%' in queries (Lucene v3.1.0)
Erick Erickson 2012-01-31, 19:36
Depending on your analyzer, this could well be stripped
from the input. Perhaps try using Luke to examine the
actual values in the index to see if it's there.

And the escape character for Lucene is the backslash.. See:
http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping
Special Characters
Best
Erick

On Tue, Jan 31, 2012 at 12:32 PM, Gal Mainzer <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I’m using lucene on Hebrew MySql tables. I used ngram (1-15 gram sizes) in
> my name analyzer and the only thing that doesn’t work for me is when I try
> to use ‘%’ in my parsing string (didn’t find any match).
>
> I tried escaping it, using double character (“%%”) but nothing worked.
>
>
>
> Thanks,
>
> Gal

---------------------------------------------------------------------