Re: QueryParser stripping special char

2007-06-12 Thread Chris Hostetter
1) the API you are using indicates you are using a fairly old version of Lucene ... I strongly urge you to upgrade, as there have been many improvements and bug fixes ... three have also beeen many methods deprecated and removed, if you start using an old version now (with it's old methods) it wil

Re: QueryParser stripping special char

2007-06-12 Thread Ozgur Yilmazel
Hi Harini; If you are already indexing phone numbers in a separate field, you could also consider indexing the area code as a separate field too. This might give better performance depending on the size of your index. Ozgur On 6/12/07, Harini Raghavan <[EMAIL PROTECTED]> wrote: Hi All, I am

Re: QueryParser stripping special char

2007-06-12 Thread Steven Rowe
Hi Harini, Harini Raghavan wrote: > I am trying to create a lucene query to search for companies based on > areacode. The phone no. is stored in the lucene index in the form of > '415-567-2323'. I need to create a query like +areaCode:"415-". But the > QueryParser is stripping off the hyphen(-). >

QueryParser stripping special char

2007-06-12 Thread Harini Raghavan
Hi All, I am trying to create a lucene query to search for companies based on areacode. The phone no. is stored in the lucene index in the form of '415-567-2323'. I need to create a query like +areaCode:"415-". But the QueryParser is stripping off the hyphen(-). Here is the code to create the qu