I set my similarity type to 'BM25' in elasticsearch.yml , using index.similarity.default.type: BM25.
But in my search case(searching across some indices), I have to use the default similarity type.
Can I set the similarity type runtime without restarting the ES cluster? Or using java api to make
settings take effect for specific indices or ES TransportClient?
I tried put settings in my java code while construct a TransportClient, using code like below:
tried ‘index.similarity.default.type’， but it seems both 'index.similarity.default.type' and 'index.similarity.custom.type' didn't take effect while global settings in elasticsearch.yml is set.
Can anyone help?
Thanks a lot,