I have an array of integers stored in ES say : [1,2,3,4,5]
Now my query array is [1,2,3,7,8]
I want to be able to get a score of how similar the two arrays are.
Array in ES - [1,2,3,4,5]
Query 1 - [1,2,3,7,8]
Query 2 - [9,76,23,56,1,2]
Query 1 should have a higher score as it has more elements common to [1,2,3,4,5] as opposed to Query 2.
Thanks for the help in advance!