code: @Override
      public Query query(Schema schema) {
  
          GeoCircle minCircle = new GeoCircle(longitude, latitude, minDistance);
          GeoCircle maxCircle = new GeoCircle(longitude, latitude, maxDistance);
  
          Condition minCondition = new GeoShapeCondition(boost, field, GeoOperator.IsDisjointTo, minCircle);
          Condition maxCondition = new GeoShapeCondition(boost, field, GeoOperator.Intersects, maxCircle);
  
          BooleanQuery query = new BooleanQuery();
          query.add(minCondition.query(schema), BooleanClause.Occur.MUST);
          query.add(maxCondition.query(schema), BooleanClause.Occur.MUST);
          return query;
      }
docs: {@inheritDoc}