int toMatchDoc ( ) throws IOException { while ( true ) { if ( findMatches ( ) ) { return docID ( ) ; } resetQueue ( ) ; if ( spans . nextDoc ( ) == NO_MORE_DOCS ) { return NO_MORE_DOCS ; } } }
To match doc .