This is, slightly, hypothetical, but let's say that I wanted to do something like index a matrix and then do a search based upon which documents had a matrix closest to the matrix that I'm searching for. How would I extend ES in order to create a query that could do this?
Also, as a follow-up, is there a way to declare a custom type in ES? I could store the matrix as a two dimensional array, but maybe there's a more elegant solution?
Thanks in advance.