code: public void validate(Schema schema) {
          if (queryCondition != null || filterCondition != null) {
              query(schema, null);
          }
          if (sort != null) {
              sort.sort(schema);
          }
      }
docs: Validates this {@link Search} against the specified {@link Schema}.
  
  @param schema A {@link Schema}.