How to use dm_crypt with elasticsearch

Yes it will work, but it's not officially supported. If you are using dm_crypt with a non-platinum licence and you encounter an issue then the support team may ask you to reproduce the issue with dm_crypt disabled before they can help you resolve it.

Yes, dm_crypt transparently encrypts the data stored on disk so it looks like normal data to users of the host machine.