parse
Parses a query string to an object, usually some query object.
In this method the three phases are executed:
1st - the query string is parsed using the text parser returned by syntaxParser, the result is a query node tree
2nd - the query node tree is processed by the processor returned by queryNodeProcessor
3th - a object is built from the query node tree using the builder returned by queryBuilder
Return
the object built from the query
Parameters
query
the query string
defaultField
the default field used by the text parser
Throws
if something wrong happens along the three phases