Example #1
0
        public GeoShapeQuery(string field, GeoShapeBase geoShape)
        {
            if (string.IsNullOrWhiteSpace(field))
                throw new ArgumentNullException("field", "GeoShapeQuery expects a field.");
            if (geoShape == null)
                throw new ArgumentNullException("geoShape", "The geo shape query expects a geo shape from Bolay.Elastic.GeoShape");

            Field = field;
            GeoShape = geoShape;
        }
Example #2
0
        public GeoShapeFilter(string field, GeoShapeBase geoShape)
        {
            if (string.IsNullOrWhiteSpace(field))
                throw new ArgumentNullException("field", "GeoShapeFilter expects a field.");
            if (geoShape == null)
                throw new ArgumentNullException("geoShape", "GeoShapeFilter expects a geo shape from Bolay.Elastic.GeoShape");

            Field = field;
            GeoShape = geoShape;
            Cache = GeoShapeSerializer._CACHE_DEFAULT;
        }