Thanks for help.<br>I just use another iterator and move in the beginning of it with skip_to(first_term_name);  // Can first_term_name be just &quot;&quot;?<br>It allows to use one class for term iteration both for ValueCountMatchSpy and Document.<br>