Detects models using elasticseach automatically and uses it, otherwise use ActiveRecord