Package org.elasticsearch.index.query.xcontent

Examples of org.elasticsearch.index.query.xcontent.XContentFilterBuilder


        for (String tf : termFacets) {
            builder.addFacet(FacetBuilders.termsFacet(tf).field(tf));
        }

        XContentFilterBuilder fb = null;
        for (Entry<String, Object> e : filters.entrySet()) {
            XContentFilterBuilder tmp = FilterBuilders.termFilter(e.getKey(), e.getValue());
            if (fb != null)
                fb = FilterBuilders.andFilter(fb, tmp);
            else
                fb = tmp;
        }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.query.xcontent.XContentFilterBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.