public class QueryVectorNotFoundException extends ElasticsearchException {
private static final long serialVersionUID = -4813065797253468811L;
public QueryVectorNotFoundException() {
super("Query Vector not found");
}
@Override
public RestStatus status() {
return RestStatus.NOT_FOUND;
}
}
my bad, I did not interpret your code correctly. As your exception is wrapped in a SearchPhaseException that one decides about the rest status return code. I dont know on top of my head, if there is a workaround, as your integration is pretty inside of a search request.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.