How to do text similarity query in es

  Kiến thức lập trình

It is necessary to compare the similarity of texts. How can the similarity of the returned data be in the range of 0-1? The scoring algorithm of es is from 0 to positive infinity.

The textual similarity of the returned data is in the range of 0 to 1, and the similarity can be adjusted, for example, only data above 0.5 or 0.7 will be returned.

New contributor

徐凤年 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT