implemented queryphase, documentindexed; update queryhandler