I'm using Python confluence.cql with a cql like "text~mystring". I can only get it to match with the results I'm getting through the UI for the most trivial single word use cases.
Something like text~"mystring AND otherstring" and not title~"Team Meeting" and type=page seems completely impossible to match.
There used to be CQL option in the UI which got removed (why?) and I've tinkered with it long enough to be near to giving up. My ultimate goals is to pre-aggregate some results through the API and if (and only if) the users clicks point them to the same results through the UI.