Beispiel #1
0
        /// <summary>
        /// Filter documents indexed using the geo_shape type.
        /// </summary>
        public BaseFilter TermsLookup(string field, Action <TermsLookupFilterDescriptor> filterDescriptor)
        {
            var filter = new TermsLookupFilterDescriptor();

            if (filterDescriptor != null)
            {
                filterDescriptor(filter);
            }
            return(this.SetDictionary("terms", field, filter, (d, b) => { b.TermsFilter = d; }));
        }
Beispiel #2
0
        /// <summary>
        /// Filter documents indexed using the geo_shape type.
        /// </summary>
        public BaseFilter TermsLookup(Expression <Func <T, object> > fieldDescriptor, Action <TermsLookupFilterDescriptor> filterDescriptor)
        {
            var filter = new TermsLookupFilterDescriptor();

            if (filterDescriptor != null)
            {
                filterDescriptor(filter);
            }
            return(this.SetDictionary("terms", fieldDescriptor, filter, (d, b) => { b.TermsFilter = d; }));
        }
Beispiel #3
0
        /// <summary>
        /// Filter documents indexed using the geo_shape type.
        /// </summary>
        public FilterContainer TermsLookup(string field, Action <TermsLookupFilterDescriptor> filterDescriptor)
        {
            var filter = new TermsLookupFilterDescriptor();

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

            ((ITermsBaseFilter)filter).Field = field;
            return(this.New(filter, f => f.Terms = filter));
        }
Beispiel #4
0
        /// <summary>
        /// Filter documents indexed using the geo_shape type.
        /// </summary>
        public FilterContainer TermsLookup(Expression <Func <T, object> > fieldDescriptor, Action <TermsLookupFilterDescriptor> filterDescriptor)
        {
            var filter = new TermsLookupFilterDescriptor();

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

            ((ITermsBaseFilter)filter).Field = fieldDescriptor;
            return(this.New(filter, f => f.Terms = filter));
        }