code: public final Query query(Schema schema) {
          Query query = doQuery(schema);
          return boost == null ? query : new BoostQuery(query, boost);
      }
docs: Returns the Lucene {@link Query} representation of this condition.
  
  @param schema the schema to be used
  @return the Lucene query