Java 类org.elasticsearch.index.query.functionscore.ScoreFunctionParser 实例源码

项目:Elasticsearch    文件:SearchModule.java   
protected void configureFunctionScore() {
    Multibinder<ScoreFunctionParser> parserMapBinder = Multibinder.newSetBinder(binder(), ScoreFunctionParser.class);
    for (Class<? extends ScoreFunctionParser> clazz : functionScoreParsers) {
        parserMapBinder.addBinding().to(clazz);
    }
    bind(ScoreFunctionParserMapper.class);
}
项目:elasticsearch_my    文件:SearchPlugin.java   
public ScoreFunctionSpec(ParseField name, Writeable.Reader<T> reader, ScoreFunctionParser<T> parser) {
    super(name, reader, parser);
}
项目:elasticsearch_my    文件:SearchPlugin.java   
public ScoreFunctionSpec(String name, Writeable.Reader<T> reader, ScoreFunctionParser<T> parser) {
    super(name, reader, parser);
}
项目:Elasticsearch    文件:SearchModule.java   
public void registerFunctionScoreParser(Class<? extends ScoreFunctionParser> parser) {
    functionScoreParsers.add(parser);
}