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 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
Providing ICMP will search above 2.

Similar issue is seen when I have _
Ex:
A_b_c_1
A_b_c_2

If I search A_B above 2 will be searched
But if I provide
A_b_c none will be searched.
Can you suggest the solution.

We are using StandardAnalyzer.
Tried to provide _ and - as stopString.
Doesn't solve the problem.
Thanks,
Smitha



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

Reply via email to