Re: Solr parsing query: Non ended comments inside comment does not work as expected

2024-05-20 Thread Yonik Seeley
It's either a feature (best-effort forgiving parsing) or a bug (number of comment closes do not match number of opens and we should return an error.) Unlike C, Solr supports nested comments. Both of your examples have two comment starts, but only one end, hence the entire string is commented from

Re: Solr parsing query: Non ended comments inside comment does not work as expected

2024-05-20 Thread Shawn Heisey
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 comments Examples samsung /* Motorola iphone */ -- > works. As expected samsung /* motorola

Solr parsing query: Non ended comments inside comment does not work as expected

2024-05-16 Thread Runar Espeland
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 comments Examples samsung /* Motorola iphone */ -- > works. As expected samsung /* motorola /* iphone */ ) --> works. Not as expect