org.codelibs.elasticsearch.taste.similarity.AbstractUserSimilarityFactory Maven / Gradle / Ivy
package org.codelibs.elasticsearch.taste.similarity;
import java.util.Map;
import org.codelibs.elasticsearch.taste.model.DataModel;
import org.codelibs.elasticsearch.util.settings.SettingsUtils;
public abstract class AbstractUserSimilarityFactory implements
SimilarityFactory {
protected DataModel dataModel;
@Override
public void init(final Map settings) {
dataModel = SettingsUtils.get(settings, "dataModel");
}
}