Re: Issue while searching with escape characters

2017-12-07 Thread Roopesh Uniyal
Thanks Emir. Got it fixed. End customer's solr was not having the records itself. They were trying to compare apples with oranges. On Thu, Dec 7, 2017 at 7:43 AM Emir Arnautović wrote: > Hi Roopesh, > If escaping special char with \ does not result in error but in no > results, then it might be

Re: Issue while searching with escape characters

2017-12-07 Thread Emir Arnautović
Hi Roopesh, If escaping special char with \ does not result in error but in no results, then it might be worth checking if your indexing is ok - does it strip parenthesis. Can you share example query and schema snippet where you define your field and fieldType. Regards, Emir -- Monitoring - Lo

Antwort: Re: Issue while searching with escape characters

2017-12-06 Thread Jan . Christopher . Schluchtmann-EXT
jan.christopher.schluchtmann-...@continental-corporation.com Datum: 06.12.2017 16:14 Betreff: Re: Issue while searching with escape characters Thanks Emir & Jan! I have a situation where I need to search a field value is between parenthesis () like - *(DVeto1)* Based on the documentation

Re: Issue while searching with escape characters

2017-12-06 Thread Roopesh Uniyal
Oh, that might be because I made DVeto1 in bold but it converted bold into *. So you can ignore both *. On Wed, Dec 6, 2017 at 10:35 AM, Emir Arnautović < emir.arnauto...@sematext.com> wrote: > Hi Roopesh, > What are *? Is it wildcard or special char as well? Examples that you > provided are not

Re: Issue while searching with escape characters

2017-12-06 Thread Emir Arnautović
Hi Roopesh, What are *? Is it wildcard or special char as well? Examples that you provided are not what you said you want to search - * are not on the same position. If you are not finding anything, that can be due to your analysis - are you sure that your analysis does not trim parenthesis? R

Re: Issue while searching with escape characters

2017-12-06 Thread Roopesh Uniyal
Thanks Emir & Jan! I have a situation where I need to search a field value is between parenthesis () like - *(DVeto1)* Based on the documentation parenthesis ju

Re: Issue while searching with escape characters

2017-12-06 Thread Emir Arnautović
Hi, You need to escape special chars with \ and if you are sending it in URL you can URL encode it, but that is URL related thing not Solr. Here is the list of Lucene characters that need to be escaped: http://lucene.apache.org/core/7_1_0/queryparser/org/apache/lucene/queryparser/classic/package

Re: Issue while searching with escape characters

2017-12-06 Thread Roopesh Uniyal
Thanks Jan. It must be a late night. Not sure what I was thinking. I provided *%5C%28DVeto1%5C%29* but still not able to get the search results I also have a situation where I have to search something like *(ID#DVeto2)* and I am providing *%5C%28ID%23DVeto2%5C%2*9 and still not able to get the re