From ae8ff0e95ee3e81f3f1230c0e4e82a338023a454 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 23 Jun 2015 00:00:41 +0200 Subject: [PATCH] use german analyzer --- app/models/paper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/paper.rb b/app/models/paper.rb index 1adc35a..0cbf551 100644 --- a/app/models/paper.rb +++ b/app/models/paper.rb @@ -11,9 +11,9 @@ class Paper < ActiveRecord::Base settings index: { number_of_shards: 1 } do mappings dynamic: false do - indexes :name, type: :string - indexes :content, type: :string - indexes :resolution, type: :string + indexes :name, type: :string, analyzer: "german" + indexes :content, type: :string, analyzer: "german" + indexes :resolution, type: :string, analyzer: "german" indexes :paper_type, type: :string, index: :not_analyzed indexes :originator, type: :string, index: :not_analyzed end