Skip to content

Commit

Permalink
[STORE] Updated the "Notes" example application for Elasticsearch 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Feb 14, 2017
1 parent 49e93a3 commit 2db5634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elasticsearch-persistence/examples/notes/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class NoteRepository

mapping do
indexes :text, analyzer: 'snowball'
indexes :tags, analyzer: 'keyword'
indexes :created_at, type: 'date'
indexes :tags, type: 'keyword'
indexes :created_at, type: 'date'
end

create_index!
Expand Down Expand Up @@ -105,7 +105,7 @@ class Application < Sinatra::Base
end

if filter
{ filtered: { query: query, filter: filter } }
{ bool: { must: [ query ], filter: filter } }
else
query
end
Expand Down

0 comments on commit 2db5634

Please sign in to comment.