rs-pro / mongoid-elasticsearch

DEPRECATED - Consider using SearchKick https://github.com/ankane/searchkick
MIT License
61 stars 23 forks source link

cannot index a single document #19

Open rrphotosoft opened 9 years ago

rrphotosoft commented 9 years ago

Hi, I have added the gem 'mongoid-elasticsearch' to my gemfile. In a model that I want to index, i have added the line

elasticsearch!

When I create documents, nothing happens, they do not show up in elasticsearch. The documentation is really very thin on what is the exact installation process. Can you please elaborate?

Thanks. Rr.

rishijain commented 8 years ago

@rrphotosoft You can try these few things:

  1. Make sure that your elasticsearch server is running (usually at 9200).
  2. Also see http://localhost:9200/_cat/indices?v on browser to check if any index is created.