@Override
   public int advance(int target) throws IOException
   {
      int doc;
      while ((doc = nextDoc()) < target)
      {
         if (doc == NO_MORE_DOCS || doc == -1)
         {
            return NO_MORE_DOCS;
         }
      }
      return doc;
   }
@ Override public int advance ( int target ) throws IOException { int doc ; while ( ( doc = nextDoc ( ) ) < target ) { if ( doc == NO_MORE_DOCS || doc == - 1 ) { return NO_MORE_DOCS ; } } return doc ; }
{@inheritDoc}