Skip to content

Commit 139e242

Browse files
committed
[MODEL] Changed the Elasticsearch port in the Mongoid example to 9200
1 parent 738c63e commit 139e242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-model/examples/mongoid_article.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Mongoid.connect_to 'articles'
2323

24-
Elasticsearch::Model.client = Elasticsearch::Client.new host: 'localhost:9250', log: true
24+
Elasticsearch::Model.client = Elasticsearch::Client.new host: 'localhost:9200', log: true
2525

2626
class Article
2727
include Mongoid::Document
@@ -49,7 +49,7 @@ def as_indexed_json(options={})
4949

5050
# Index data
5151
#
52-
client = Elasticsearch::Client.new host:'localhost:9250', log:true
52+
client = Elasticsearch::Client.new host:'localhost:9200', log:true
5353

5454
client.indices.delete index: 'articles' rescue nil
5555
client.bulk index: 'articles',

0 commit comments

Comments
 (0)