public class EscapeQuerySyntaxImpl extends Object implements EscapeQuerySyntax
EscapeQuerySyntax
for the standard lucene
syntax.EscapeQuerySyntax.Type
Constructor and Description |
---|
EscapeQuerySyntaxImpl() |
Modifier and Type | Method and Description |
---|---|
static UnescapedCharSequence |
discardEscapeChar(CharSequence input)
Returns a String where the escape char has been removed, or kept only once
if there was a double escape.
|
CharSequence |
escape(CharSequence text,
Locale locale,
EscapeQuerySyntax.Type type) |
public CharSequence escape(CharSequence text, Locale locale, EscapeQuerySyntax.Type type)
escape
in interface EscapeQuerySyntax
text
- - text to be escapedlocale
- - locale for the current querytype
- - select the type of escape operation to usepublic static UnescapedCharSequence discardEscapeChar(CharSequence input) throws ParseException
A
to
A
.ParseException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.