All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.noear.esearchx.model.EsHighlightField Maven / Gradle / Ivy

The newest version!
package org.noear.esearchx.model;

import org.noear.snack.ONode;

/**
 * @author noear
 * @since 1.0.14
 */
public class EsHighlightField {
    private final ONode oNode;

    public EsHighlightField(ONode oNode) {
        this.oNode = oNode;
    }


    public EsHighlightField preTags(String tags){
        oNode.set("pre_tags", tags);
        return this;
    }

    public EsHighlightField postTags(String tags){
        oNode.set("post_tags", tags);
        return this;
    }

    public EsHighlightField requireMatch(boolean requireMatch){
        oNode.set("require_field_match", requireMatch);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy