Skip to content

Commit 64f31b4

Browse files
committed
[MODEL] Removed left-overs from previous implementation in the "completion suggester" example
Related: 109c155
1 parent 02d9814 commit 64f31b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

elasticsearch-model/examples/activerecord_mapping_completion.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class Article < ActiveRecord::Base
2525
end
2626

2727
def as_indexed_json(options={})
28-
as_json.merge \
29-
title_suggest: { input: title },
30-
url: "/articles/#{id}"
28+
as_json.merge 'url' => "/articles/#{id}"
3129
end
3230
end
3331

0 commit comments

Comments
 (0)