mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
use german analyzer
This commit is contained in:
parent
25e7a580a8
commit
ae8ff0e95e
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@ class Paper < ActiveRecord::Base
|
||||||
|
|
||||||
settings index: { number_of_shards: 1 } do
|
settings index: { number_of_shards: 1 } do
|
||||||
mappings dynamic: false do
|
mappings dynamic: false do
|
||||||
indexes :name, type: :string
|
indexes :name, type: :string, analyzer: "german"
|
||||||
indexes :content, type: :string
|
indexes :content, type: :string, analyzer: "german"
|
||||||
indexes :resolution, type: :string
|
indexes :resolution, type: :string, analyzer: "german"
|
||||||
indexes :paper_type, type: :string, index: :not_analyzed
|
indexes :paper_type, type: :string, index: :not_analyzed
|
||||||
indexes :originator, type: :string, index: :not_analyzed
|
indexes :originator, type: :string, index: :not_analyzed
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue