Commit 55f03a2a authored by Dmitry Gruzd's avatar Dmitry Gruzd Committed by Dylan Griffith

Fix advanced global search illegal_state_exception

parent d344e6ab
...@@ -117,7 +117,7 @@ module Elastic ...@@ -117,7 +117,7 @@ module Elastic
indexes :iid, type: :integer indexes :iid, type: :integer
indexes :title, type: :text, indexes :title, type: :text,
index_options: 'docs' index_options: 'positions'
indexes :description, type: :text, indexes :description, type: :text,
index_options: 'positions' index_options: 'positions'
indexes :state, type: :text indexes :state, type: :text
...@@ -163,11 +163,11 @@ module Elastic ...@@ -163,11 +163,11 @@ module Elastic
### PROJECTS ### PROJECTS
indexes :name, type: :text, indexes :name, type: :text,
index_options: 'docs' index_options: 'positions'
indexes :path, type: :text, indexes :path, type: :text,
index_options: 'docs' index_options: 'positions'
indexes :name_with_namespace, type: :text, indexes :name_with_namespace, type: :text,
index_options: 'docs', index_options: 'positions',
analyzer: :my_ngram_analyzer analyzer: :my_ngram_analyzer
indexes :path_with_namespace, type: :text, indexes :path_with_namespace, type: :text,
index_options: 'positions' index_options: 'positions'
...@@ -185,7 +185,7 @@ module Elastic ...@@ -185,7 +185,7 @@ module Elastic
### SNIPPETS ### SNIPPETS
indexes :file_name, type: :text, indexes :file_name, type: :text,
index_options: 'docs' index_options: 'positions'
indexes :content, type: :text, indexes :content, type: :text,
index_options: 'positions' index_options: 'positions'
...@@ -227,14 +227,14 @@ module Elastic ...@@ -227,14 +227,14 @@ module Elastic
normalizer: :sha_normalizer normalizer: :sha_normalizer
indexes :author do indexes :author do
indexes :name, type: :text, index_options: 'docs' indexes :name, type: :text, index_options: 'positions'
indexes :email, type: :text, index_options: 'docs' indexes :email, type: :text, index_options: 'positions'
indexes :time, type: :date, format: :basic_date_time_no_millis indexes :time, type: :date, format: :basic_date_time_no_millis
end end
indexes :committer do indexes :committer do
indexes :name, type: :text, index_options: 'docs' indexes :name, type: :text, index_options: 'positions'
indexes :email, type: :text, index_options: 'docs' indexes :email, type: :text, index_options: 'positions'
indexes :time, type: :date, format: :basic_date_time_no_millis indexes :time, type: :date, format: :basic_date_time_no_millis
end end
......
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