Method Parse
Parse(String, String)
Parses a query string to an object, usually some query object.
In this method the three phases are executed:
- the query string is parsed using the text parser returned by SyntaxParser, the result is a query node tree.
- the query node tree is processed by the processor returned by QueryNodeProcessor.
- a object is built from the query node tree using the builder returned by QueryBuilder.
Declaration
public virtual TQuery Parse(string query, string defaultField)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | the query string |
System.String | defaultField | the default field used by the text parser |
Returns
Type | Description |
---|---|
TQuery | the object built from the query |
Exceptions
Type | Condition |
---|---|
QueryNodeException | if something wrong happens along the three phases |