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

querqy.elasticsearch.rewriterstore.LoadRewriterConfig Maven / Gradle / Ivy

package querqy.elasticsearch.rewriterstore;

import java.util.Map;

public class LoadRewriterConfig {

    private final RewriterConfigMapping configMapping;
    private final String rewriterId;
    private final Map luceneDoc;

    public LoadRewriterConfig(final String rewriterId, final Map luceneDoc) {
        this.configMapping = RewriterConfigMapping.getMapping(luceneDoc);
        this.rewriterId = rewriterId;
        this.luceneDoc = luceneDoc;
    }

    public RewriterConfigMapping getConfigMapping() {
        return configMapping;
    }

    public String getRewriterId() {
        return rewriterId;
    }

    public String getRewriterClassName() {
        return configMapping.getRewriterClassName(rewriterId, luceneDoc);
    }

    public Map getConfig() {
        return configMapping.getConfig(rewriterId, luceneDoc);
    }

    public Map getInfoLoggingConfig() {
        return configMapping.getInfoLoggingConfig(rewriterId, luceneDoc);
    }




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy