Having problem with indexing/ searching with _ or -

2014-07-04 Thread Smitha Kuldeep (smtt)
Hello team, We are using lucen-core-2.9.1.jar for indexing and searching for text fields We are having problem when our string has digits as prefix or suffix of _/- Ex: I have texts ICMP6-a-b ICMP6-echo If I provide ICMP6 it doesn't search any of the above. But if I have ICMP-a-b ICMP-echo Provi

Re: Having problem with indexing/ searching with _ or -

2014-07-06 Thread Ganesh
Hi Smitha, You need to have your own custom analyzer which breaks the word by - or _. Use the same analyzer for indexing and searching. Regards Aditya www.findbestopensource.com On 7/4/2014 11:41 AM, Smitha Kuldeep (smtt) wrote: Hello team, We are using lucen-core-2.9.1.jar for indexing and