hi, I have issues with my custom search plugin.
I have made search plugin to change scoring. It was okay till I have installed my plugin and start ES.
But when I searched query, ES just shut down without any returning exceptions.
In Kibana, it said {"statusCode":502,"error":"Bad Gateway","message":"read ECONNRESET"}.
I'm using 7.7 version and OS is window 10.
My plugin is based on Search plugin.
public class PayloadSimilarityPlugin extends Plugin implements SearchPlugin {
@Override
public List<QuerySpec<?>> getQueries() {
return Collections.singletonList(new QuerySpec<>(PayloadQuery.NAME, PayloadQueryBuilder::new, PayloadQueryBuilder::fromXcontent));
}
}
I have sent a query like this. (PayloadQuery.NAME == payload_score)
body = {
"query": {
"payload_score": {
"query": {
"match": {
"contents": "white"
}
}
}
}
}
How can I apply my plugin properly?
If search plugin is not supported anymore, is there anyway to make Payload Scoring based on payload delimiter filter?