File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
elasticsearch-persistence/examples/notes Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ gem 'hashie'
26
26
27
27
gem 'patron'
28
28
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'
31
31
32
32
gem 'sinatra' , require : false
33
33
gem 'thin'
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class Application < Sinatra::Base
237
237
<% @notes.each_with_hit do |note, hit| %>
238
238
<div class="note">
239
239
<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 %>
241
241
242
242
<% note.tags.each do |tag| %> <strong class="t"><%= tag %></strong><% end %>
243
243
<small class="d"><%= Time.parse(note.created_at).strftime('%d/%m/%Y %H:%M') %></small>
You can’t perform that action at this time.
0 commit comments