On 5/14/24 06:40, Runar Espeland wrote:
Solr parsing non-ended comments inside comment, does not work as expected. If there are non-ended comments inside a comment. Then it will treat trailing words as commentsExamples samsung /* Motorola iphone */ -- > works. As expected samsung /* motorola /* iphone */ ) --> works. Not as expected. Ignores trailing ')' ( samsung /* motorola /* iphone */ nokia ) -- > fails. Not as expected. Because of starting '('. Ended ')' is ignored. Since it is read as a comment.
If you are trying to search for actual parenthesis characters, you need to escape them with a backslash. Parentheses are a special character in Solr queries used for overriding the query operator parsing order.
Same goes for the asterisk character. It is a special character used for wildcard searching, so if you want to actually match an asterisk character, you have to escape it.
Thanks, Shawn
