Hi, all:
I met a problem with solr. I have docs containing characters like []?! etc. I want to search such docs. Documents say
Escaping Special Characters
Lucene supports escaping special characters that are part of the query syntax.
The current list special characters are
&& || ! ( ) { } [ ] ^ " ~ * ? : \ To escape these character use the \ before the character. For example to search >for (1+1):2 use the query:
(1+1)\:2
But on solr Ui Admin, It doesn¡¯t work as documents say. Result show below
[cid:image001.jpg@01D21279.61E29DF0]
Where is the problem? Thank you for your help!
Best Wishes!
Zhang Yue
I met a problem with solr. I have docs containing characters like []?! etc. I want to search such docs. Documents say
Escaping Special Characters
Lucene supports escaping special characters that are part of the query syntax.
The current list special characters are
&& || ! ( ) { } [ ] ^ " ~ * ? : \ To escape these character use the \ before the character. For example to search >for (1+1):2 use the query:
(1+1)\:2
But on solr Ui Admin, It doesn¡¯t work as documents say. Result show below
[cid:image001.jpg@01D21279.61E29DF0]
Where is the problem? Thank you for your help!
Best Wishes!
Zhang Yue