Parses the boolean subquery expression specified in the parameter string and compiles it into the executable object representation ready for further execution.

This function is a variation of parseFlexQuery() function. The difference is that the expression specified in the parameter string should return a boolean result. The function checks this and raises an error not only when the expression syntax is incorrect but also when the subquery is not of the boolean type.

Returns:

The reference to the compiled subquery or null, when the passed expression was a blank string (or contained nothing but comments).

Note: The returned compiled representation of the subquery is the same as the one produced by the BooleanQuery() function call:

BooleanQuery({ expr })
where the expression specified in the expr parameter string is written directly in the curly brackets.

See Also:

execBooleanQuery(), BooleanQuery()