example code for rails implementation of elasticsearch and chewy gem