Fix escape character for search syntax (#1972)

Replace escaped characters to display automatically escaped characters in search syntax and examples.
This commit is contained in:
Phil-Ah
2022-03-08 16:41:11 +01:00
committed by GitHub
parent 9c3e9cd76d
commit 390384b723
3 changed files with 8 additions and 6 deletions

View File

@@ -136,10 +136,10 @@ Search supports using parentheses to group clauses to form sub queries. This can
The search supports escaping special characters that are part of the query syntax. The current list special characters are
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \\ /
+ − && || ! ( ) { } [ ] ^ " ~ * ? : \ /
To escape these characters use the "\\" before the character. For example to search for (1+1):2 use the query:
To escape these characters use the "\" before the character. For example to search for (1+1):2 use the query:
\\(1\\+1\\)\\:2
\(1\+1\)\:2
Source: [https://javadoc.io/static/org.apache.lucene/lucene-queryparser/8.9.0/org/apache/lucene/queryparser/classic/package-summary.html#package.description](https://javadoc.io/static/org.apache.lucene/lucene-queryparser/8.9.0/org/apache/lucene/queryparser/classic/package-summary.html#package.description)`;