Re: Error when searching with special characters

2016-07-01 Thread Zheng Lin Edwin Yeo
Hi Ere, Yes, this works. Thanks for your reply. Regards, Edwin On 1 July 2016 at 15:00, Ere Maijala wrote: > You need to make sure you encode things properly in the URL. You can't > just place an ampersand there because it's the parameter delimiter in a > URL. If you're unsure, use e.g. http:

Re: Error when searching with special characters

2016-07-01 Thread Ere Maijala
You need to make sure you encode things properly in the URL. You can't just place an ampersand there because it's the parameter delimiter in a URL. If you're unsure, use e.g. http://meyerweb.com/eric/tools/dencoder/ to encode your search terms. You'll see that "r&d" will become %22r%26d%22. Esc

Re: Error when searching with special characters

2016-06-30 Thread Zheng Lin Edwin Yeo
Hi, When I use defType=edismax, and using debug mode by setting debug=True, I found that the search for "r&d" is actually done to search on just the character "r". http://localhost:8983/solr/collection1/highlight?q= "r&d"&debugQuery=true&defType=edismax "debug":{ "rawquerystring":"\"r",

Re: Error when searching with special characters

2016-06-18 Thread Ahmet Arslan
If properly escaped ampersand throws parse exception, this could be a bug. On Saturday, June 18, 2016 7:12 PM, Zheng Lin Edwin Yeo wrote: Hi, It does not work with the back slash too. But I found that it does not work for defType=lucene. It will work if the defType=dismax or edismax. What

Re: Error when searching with special characters

2016-06-18 Thread Zheng Lin Edwin Yeo
Hi, It does not work with the back slash too. But I found that it does not work for defType=lucene. It will work if the defType=dismax or edismax. What could be the reason that it did not work with the default defType=lucene? Regards, Edwin On 18 June 2016 at 01:04, Ahmet Arslan wrote: > Hi

Re: Error when searching with special characters

2016-06-17 Thread Ahmet Arslan
Hi, May be URL encoding issue? By the way, I would use back slash to escape special characters. Ahmet On Friday, June 17, 2016 10:08 AM, Zheng Lin Edwin Yeo wrote: Hi, I encountered this error when I tried to search with special characters, like "&" and "#". { "responseHeader":{ "st

Error when searching with special characters

2016-06-17 Thread Zheng Lin Edwin Yeo
Hi, I encountered this error when I tried to search with special characters, like "&" and "#". { "responseHeader":{ "status":400, "QTime":0}, "error":{ "msg":"org.apache.solr.search.SyntaxError: Cannot parse '\"Research ': Lexical error at line 1, column 11. Encountered: after :