lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Williams <ch...@allthingslocal.com>
Subject Re: Escaping special characters
Date Thu, 07 Apr 2005 06:38:46 GMT
Mufaddal Khumri writes (4/6/2005 11:21 PM):

>Hi,
>
> 
>
>Am new to Lucene. I found the following page:
>http://lucene.apache.org/java/docs/queryparsersyntax.html. At the bottom
>of the page there is a section that in order to escape special
>characters one would use "\".
>
> 
>
>I have an Indexer that indexes product names. Some product names have
>"-" character in them. When I use my search class to search for product
>names with - in them it wont find those products.
>  
>
How did you index those product names?  I.e., if you used a tokenized 
field for the product names and an analyzer that breaks on the hyphens, 
then there are no hyphenated tokens for you to match.  I would suggest 
using Luke to browse your index and see what you have.

Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message