add summarizer for first match positions and fix some small bugs in match phrase summarizer