Re: Searching for a special character

2009-06-24 Thread Simon Willnauer
Beside choosing the right analyzer you could run into problems if you use a query parser as it will interpret you parentesis. simon On Wed, Jun 24, 2009 at 8:11 PM, Erick Erickson wrote: > First, I highly, highly recommend you get a copy of Luke to examineyour > index. It'll also help you underst

Re: Searching for a special character

2009-06-24 Thread Erick Erickson
First, I highly, highly recommend you get a copy of Luke to examineyour index. It'll also help you understand the role of Analyzers. Your first problem is that StandardAnalyzer probably removes the open and close parens. See: http://lucene.apache.org/java/2_4_1/api/index.html so you can't search o

Searching for a special character

2009-06-24 Thread Radha Sreedharan
Hi all, I am using a Standard analyzer on both my search field and my query. I use a SpanNearQuery to search on the search field. One of the query terms has special characters like ( - round open bracket and ) - round close bracket : How does Lucene handle this? Also, the search field has ( and