mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
added mapping for attribute published_at to fix sorting by date. Note this requires rebuilding the elasticsearch index
This commit is contained in:
parent
1734b8bfd6
commit
0718e86f07
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class Paper < ActiveRecord::Base
|
|||
indexes :content, type: :string, analyzer: "german"
|
||||
indexes :resolution, type: :string, analyzer: "german"
|
||||
indexes :paper_type, type: :string, index: :not_analyzed
|
||||
indexes :published_at, type: :date, index: :not_analyzed
|
||||
indexes :originator, type: :string, index: :not_analyzed
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue