Changed query engine to use DocIdHandler to retrieve raw document ID