Class EscapeQuerySyntax
Implementation of IEscapeQuerySyntax for the standard lucene syntax.
Inheritance
System.Object
EscapeQuerySyntax
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Parser
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class EscapeQuerySyntax : IEscapeQuerySyntax
Methods
| Improve this Doc View SourceDiscardEscapeChar(String)
Returns a string where the escape char has been removed, or kept only once if there was a double escape.
Supports escaped unicode characters, e. g. translates A
to
A
.
Declaration
public static UnescapedCharSequence DiscardEscapeChar(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input |
Returns
Type | Description |
---|---|
UnescapedCharSequence |
Escape(ICharSequence, CultureInfo, EscapeQuerySyntaxType)
Declaration
public virtual ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
Type | Name | Description |
---|---|---|
J2N.Text.ICharSequence | text | |
System.Globalization.CultureInfo | locale | |
EscapeQuerySyntaxType | type |
Returns
Type | Description |
---|---|
J2N.Text.ICharSequence |
Escape(String, CultureInfo, EscapeQuerySyntaxType)
Declaration
public virtual string Escape(string text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Globalization.CultureInfo | locale | |
EscapeQuerySyntaxType | type |
Returns
Type | Description |
---|---|
System.String |