
org.codelibs.elasticsearch.dynarank.ranker.RetrySearchException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-dynarank Show documentation
Show all versions of elasticsearch-dynarank Show documentation
This plugin provides a feature to re-rank a search result at the search time.
package org.codelibs.elasticsearch.dynarank.ranker;
import java.util.Map;
public class RetrySearchException extends RuntimeException {
private static final long serialVersionUID = 1L;
private QueryRewriter rewriter;
public RetrySearchException(QueryRewriter rewriter) {
super();
this.rewriter = rewriter;
}
@Override
public synchronized Throwable fillInStackTrace() {
return null;
}
public Map rewrite(Map source) {
return rewriter.rewrite(source);
}
public interface QueryRewriter {
Map rewrite(Map source);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy