I have to write unit tests of spring boot application with elasticsearch.
I've read a lot of documentation, and I've discovered that an embedded elasticsearch can be used, a bit like using H2 for DBMS.
Unfortunately, applying what I read and looking at some examples found on the net, I came to the conclusion that an embedded elasticsearch cannot be used for my purpose, or I don't know how to make it work.
Has anyone ever used an embedded elasticsearch to make me understand how he used it?