code: public StructuredQueryDefinition near(int maximumDistance, double weight, Ordering order,
      StructuredQueryDefinition... queries)
    {
      checkQueries(queries);
      return new NearQuery(null, maximumDistance, weight, order, queries);
    }
docs: Defines a NEAR query over the list of query definitions
  with specified parameters.
  @param maximumDistance the maximum distance (in number of words) between any two matching
  queries
  @param weight    the weight for the query
  @param order    the ordering for the query terms
  @param queries    the query definitions
  @return    the StructuredQueryDefinition for the NEAR query