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
Escape(ICharSequence, CultureInfo, EscapeQuerySyntaxType)
A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.
Declaration
ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ICharSequence | text | text to be escaped |
| CultureInfo | locale | locale for the current query |
| EscapeQuerySyntaxType | type | select the type of escape operation to use |
Returns
| Type | Description |
|---|---|
| ICharSequence | escaped text |
Escape(string, CultureInfo, EscapeQuerySyntaxType)
A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.
Declaration
string Escape(string text, CultureInfo locale, EscapeQuerySyntaxType type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | text to be escaped |
| CultureInfo | locale | locale for the current query |
| EscapeQuerySyntaxType | type | select the type of escape operation to use |
Returns
| Type | Description |
|---|---|
| string | escaped text |