Skip to content
Snippets Groups Projects
Commit 2d8436c8 authored by Valery Sizov's avatar Valery Sizov
Browse files

Improve code analyzer

parent cfabe39f
No related branches found
No related tags found
1 merge request!16Improve code analyzer
Pipeline #
0.0.17
- Improve code analyzer
0.0.16
- Analyzer for CamelCased terms
 
Loading
Loading
Loading
Loading
@@ -39,6 +39,12 @@ module Elasticsearch
tokenizer: 'standard',
filter: %w(code lowercase asciifolding),
char_filter: ["code_mapping"]
},
code_search_analyzer: {
type: 'custom',
tokenizer: 'standard',
filter: %w(lowercase asciifolding),
char_filter: ["code_mapping"]
}
},
tokenizer: {
Loading
Loading
Loading
Loading
@@ -37,10 +37,12 @@ module Elasticsearch
indexes :path, type: :string,
analyzer: :path_analyzer
indexes :file_name, type: :string,
analyzer: :code_analyzer
analyzer: :code_analyzer,
search_analyzer: :code_search_analyzer
indexes :content, type: :string,
index_options: 'offsets',
analyzer: :code_analyzer
analyzer: :code_analyzer,
search_analyzer: :code_search_analyzer
indexes :language, type: :string,
index: :not_analyzed
end
Loading
Loading
module Elasticsearch
module Git
VERSION = '0.0.16'
VERSION = '0.0.17'
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment