Interface IEscapeQuerySyntax
A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Parser
Assembly: Lucene.Net.QueryParser.dll
Syntax
public interface IEscapeQuerySyntax
Methods
| Improve this Doc View SourceEscape(ICharSequence, CultureInfo, EscapeQuerySyntaxType)
Declaration
ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
Type | Name | Description |
---|---|---|
J2N.Text.ICharSequence | text | text to be escaped |
System.Globalization.CultureInfo | locale | locale for the current query |
EscapeQuerySyntaxType | type | select the type of escape operation to use |
Returns
Type | Description |
---|---|
J2N.Text.ICharSequence | escaped text |
Escape(String, CultureInfo, EscapeQuerySyntaxType)
Declaration
string Escape(string text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | text to be escaped |
System.Globalization.CultureInfo | locale | locale for the current query |
EscapeQuerySyntaxType | type | select the type of escape operation to use |
Returns
Type | Description |
---|---|
System.String | escaped text |