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
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 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