Fix code documentation about a query while matching a document.