Ejemplo n.º 1
0
        private BaseFilter _GeoIndexedShape(PropertyPathMarker field, Action <GeoIndexedShapeFilterDescriptor> filterDescriptor)
        {
            var filter = new GeoIndexedShapeFilterDescriptor();

            if (filterDescriptor != null)
            {
                filterDescriptor(filter);
            }

            return(this.SetDictionary("geo_shape", field, filter, (d, b) => { b.GeoShapeFilter = d; }));
        }
Ejemplo n.º 2
0
        private FilterContainer _GeoIndexedShape(PropertyPathMarker field, Action <GeoIndexedShapeFilterDescriptor> filterDescriptor)
        {
            var filter = new GeoIndexedShapeFilterDescriptor();

            if (filterDescriptor != null)
            {
                filterDescriptor(filter);
            }
            ((IGeoIndexedShapeFilter)filter).Field = field;
            return(this.New(filter, f => f.GeoShape = filter));
        }
        /// <summary>
        /// Filter documents indexed using the geo_shape type.
        /// </summary>
        public BaseFilter GeoIndexedShape(string field, Action <GeoIndexedShapeFilterDescriptor> filterDescriptor)
        {
            var filter = new GeoIndexedShapeFilterDescriptor();

            if (filterDescriptor != null)
            {
                filterDescriptor(filter);
            }

            return(this.SetDictionary("geo_shape", field, filter, (d, b) =>
            {
                b.GeoShapeFilter = d;
            }));
        }