Re: Issue while searching text with special characters like @,#

2016-09-07 Thread Chaitanya Kumar Ch
Thank you. Can you please share me code snippet to deal with these chars. I tried but couldn't achieve. On Tue, Sep 6, 2016 at 10:59 PM, Iker Huerga wrote: > here is the thing, you are probably using the StandardAnalyzer so those > special characters are going to be removed at indexing time > >

Re: Issue while searching text with special characters like @,#

2016-09-06 Thread Iker Huerga
here is the thing, you are probably using the StandardAnalyzer so those special characters are going to be removed at indexing time If you don't want that to happen, if you don't want that to happen you can try with KeywordAnalyzer or just create your own Analyzer You can test with the following

Re: Issue while searching text with special characters like @,#

2016-09-06 Thread Chaitanya Kumar Ch
Do you suggest me to pass matching string by encoding. Ex: .onField("body").ignoreFieldBridge().ignoreAnalyzer().matching(URLEncoder.encode("#chaitu")) On Tue, Sep 6, 2016 at 7:58 PM, Iker Huerga wrote: > # and @ are Reserved Characters as per RFC 3986 > https://tools.ietf.org/html/rfc3986 see s

Re: Issue while searching text with special characters like @,#

2016-09-06 Thread Iker Huerga
# and @ are Reserved Characters as per RFC 3986 https://tools.ietf.org/html/rfc3986 see section 2.2 so you would have to URL encode them My 2 cents 2016-09-06 10:20 GMT-04:00 Chaitanya Kumar Ch : > Thanks for the reply. > I have tried that but didn't work. > Also please note that *@,# are not pa

Re: Issue while searching text with special characters like @,#

2016-09-06 Thread Chaitanya Kumar Ch
Thanks for the reply. I have tried that but didn't work. Also please note that *@,# are not part of current special characters list*. On Tue, Sep 6, 2016 at 7:47 PM, Iker Huerga wrote: > I'd try scaping the characters as in > https://lucene.apache.org/core/2_9_4/queryparsersyntax. > html#Escapin

Re: Issue while searching text with special characters like @,#

2016-09-06 Thread Iker Huerga
I'd try scaping the characters as in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Escaping%20Special%20Characters 2016-09-06 10:02 GMT-04:00 Chaitanya Kumar Ch : > Hi All! > > I am facing issue while trying to match a fields content with some keywords > which contains symbols like