Exemple #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; }));
        }
Exemple #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; }));
        }
Exemple #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));
        }
Exemple #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));
        }