Skip to content

Commit 1115793

Browse files
committed
Fix error while doing bundle error. Branch name is changed from master to main. * Fix when run the persistance app.
1 parent 835ea07 commit 1115793

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elasticsearch-persistence/examples/notes/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ gem 'hashie'
2626

2727
gem 'patron'
2828
gem 'elasticsearch'
29-
gem 'elasticsearch-model', git: 'https://github.com/elastic/elasticsearch-rails.git'
30-
gem 'elasticsearch-persistence', git: 'https://github.com/elastic/elasticsearch-rails.git'
29+
gem 'elasticsearch-model', git: 'https://github.com/elastic/elasticsearch-rails.git', branch: 'main'
30+
gem 'elasticsearch-persistence', git: 'https://github.com/elastic/elasticsearch-rails.git', branch: 'main'
3131

3232
gem 'sinatra', require: false
3333
gem 'thin'

elasticsearch-persistence/examples/notes/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class Application < Sinatra::Base
237237
<% @notes.each_with_hit do |note, hit| %>
238238
<div class="note">
239239
<p>
240-
<%= hit.highlight && hit.highlight.size > 0 ? hit.highlight.text.first : note.text %>
240+
<%= hit[:highlight] && hit[:highlight].size > 0 ? hit[:highlight].text.first : note.text %>
241241

242242
<% note.tags.each do |tag| %> <strong class="t"><%= tag %></strong><% end %>
243243
<small class="d"><%= Time.parse(note.created_at).strftime('%d/%m/%Y %H:%M') %></small>

0 commit comments

Comments
 (0)