I wrote a quick step by step guide on How to install full text search with elasticsearch on Nextcloud 13. It works on my debian 9 installation but it can be used as a reference for other systems. Hope you like it.
Is somebody able to make it working? It takes forever to run the index and at the end runs into an error without finishing. Plus elastic search node is status yellow.