Package org.elasticsearch.search.facet.range

Examples of org.elasticsearch.search.facet.range.RangeFacetBuilder.keyField()


    Assert.notNull(getName(), "Facet name can't be a null !!!");
    Assert.isTrue(StringUtils.isNotBlank(field) || StringUtils.isNotBlank(keyField) && StringUtils.isNotBlank(valueField), "Please select field or key field and value field !!!");

    RangeFacetBuilder builder = FacetBuilders.rangeFacet(getName());
    if (StringUtils.isNotBlank(keyField)) {
      builder.keyField(keyField).valueField(valueField);
    } else {
      builder.field(field);
    }

    for (Entry entry : entries) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.