lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganesh <emailg...@yahoo.co.in>
Subject Re: Having problem with indexing/ searching with _<digit> or -<digit>
Date Sun, 06 Jul 2014 13:42:06 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message