Fix texthtml document writing failing to write model whose attribute
publish() method raised.
Implement a query subroutine returing the list of unique values of a QueryView field within the range of the other query.

This query only analizes the view index, without fetching the document bodies.