running the following command gives an error
rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/01-basic.rb

Bundler could not find compatible versions for gem "elasticsearch":
In Gemfile:
elasticsearch
elasticsearch-model was resolved to 7.1.0, which depends on
elasticsearch (~> 7)
$ rails --version
Rails 6.0.3.5