We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 738c63e commit 139e242Copy full SHA for 139e242
elasticsearch-model/examples/mongoid_article.rb
@@ -21,7 +21,7 @@
21
22
Mongoid.connect_to 'articles'
23
24
-Elasticsearch::Model.client = Elasticsearch::Client.new host: 'localhost:9250', log: true
+Elasticsearch::Model.client = Elasticsearch::Client.new host: 'localhost:9200', log: true
25
26
class Article
27
include Mongoid::Document
@@ -49,7 +49,7 @@ def as_indexed_json(options={})
49
50
# Index data
51
#
52
-client = Elasticsearch::Client.new host:'localhost:9250', log:true
+client = Elasticsearch::Client.new host:'localhost:9200', log:true
53
54
client.indices.delete index: 'articles' rescue nil
55
client.bulk index: 'articles',
0 commit comments