Commit ad2b85c4 authored by Valery Sizov's avatar Valery Sizov

ES: one more fix

parent ce18fdd9
......@@ -16,10 +16,11 @@ module ApplicationSearch
tokenizer: "standard",
filter: ["standard", "lowercase", "my_stemmer"]
}
},
filter: {
my_stemmer: {
type: "stemmer",
name: "light_german"
name: "light_english"
}
}
}
......
......@@ -10,7 +10,6 @@ module MergeRequestsSearch
indexes :iid, type: :integer
indexes :target_branch, type: :string,
index_options: 'offsets'
analyzer: :my_analyzer
indexes :source_branch, type: :string,
index_options: 'offsets'
indexes :title, type: :string,
......
namespace :gitlab do
namespace :elastic do
desc "Indexing repositories"
task index_repository: :environment do
task index_repositories: :environment do
Repository.import
end
desc "Indexing all wikis"
task index_wiki: :environment do
task index_wikis: :environment do
ProjectWiki.import
end
desc "Create indexes in the Elasticsearch from database records"
task create_index: :environment do
task index_database: :environment do
[Project, Issue, MergeRequest, Snippet, Note, Milestone].each do |klass|
klass.__elasticsearch__.create_index!
klass.import
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment