bruno-roustant commented on a change in pull request #1819:
URL: https://github.com/apache/lucene-solr/pull/1819#discussion_r482119547
##########
File path: solr/solr-ref-guide/src/the-query-elevation-component.adoc
##########
@@ -61,7 +61,18 @@ Optionally, in the Query Elevation Component configuration
you can also specify
The Query Elevation Search Component takes the following parameters:
`queryFieldType`::
-Specifies which fieldType should be used to analyze the incoming text. For
example, it may be appropriate to use a fieldType with a LowerCaseFilter.
+Specifies which fieldType should be used to analyze the incoming text. For
example, it may be appropriate to use a fieldType with a LowerCaseFilter. Other
example, if you need to unescape backslash-escaped queries, then you can define
the fieldType to preprocess with a PatternReplaceCharFilter. Here is the
corresponding example of fieldType (traditionally in `schema.xml`):
+
+[source,xml]
+----
+<fieldType name="unescapelowercase" class="solr.TextField">
+ <analyzer>
+ <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\\(.)"
replacement="$1"/>
Review comment:
The regex would be "\\\\([^\\p{Alnum}])", but it applies to ASCII
alphanum, not internationalized.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]