querqy.elasticsearch.rewriterstore.LoadRewriterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-elasticsearch Show documentation
Show all versions of querqy-elasticsearch Show documentation
Querqy library for query rewriting: Querqy for Elasticsearch
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