Kentico Custom Form 控件类型:我想给用户输入特殊字符来搜索它

Kentico Custom Form control type: I want to give an user input with special characters to search for it

我试过将文本框作为表单控件类型,但它对 "xxx & xxxx" 不起作用。因此,如果它与 Form 控件类型或其他东西有关,请寻求建议 else.If 是的,请让我知道如何修复它。

智能搜索 (i.e.Lucene) 支持转义查询语法中的特殊字符。特殊字符是:+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /。要转义这些字符,请在字符前使用 \。所以尝试 "xxx \& xxxx" 看看它是否有效。

感谢@PeterMogilnitski。我试过使用 "xxx \& xxxx"。它不起作用。enter image description here 看看这张图片。假设 Field 或 searchName 的格式为 "xxx & xxxx"。那么您对 ​​Documentname 有何建议,它应该会找到 searchname 的结果。