Hi Gioele,
Good to hear that the query is evaluated faster now.
It looks like support for wrapping results has been removed recently [...]
Exactly, the wrap parameter was removed. The reason was that our wrapping mechanism never really fit well together with the existing serialization parameters (unless the default parameters were used).
Given that in my use-case (uncontrolled user queries [1]) I need each result to be wrapped, could someone suggest a reliable workaround?
The easiest way out is to wrap your results via XQuery. If your query string is "/a/b/c", you could e.g. rewrite it to:
( /a/b/c ) ! element wrap { . }
Cheers, Christian