gitlab-elasticsearch-git 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 054efbf7262d71c052ff192800e9bc22920085b4
4
- data.tar.gz: c49f66ffa207e47d68527065a7c0cc656a3b658d
3
+ metadata.gz: 5a29bf85d996a734eafc1d569dc32f20795baedb
4
+ data.tar.gz: 72bc712f6d6c40fbca6e9ca2619282f49133cb9e
5
5
  SHA512:
6
- metadata.gz: fe1ff8b03b42c23ebf79210a2b7e0ee576e5d60934dbafd8b5d08c3371ac74c916d3308d294b7d23f766c9673a38f4563e767baa512439c8f86eaa77aa6eb6ec
7
- data.tar.gz: 2e04673c2d31379398109e8cf2534bc9b2880dd3c603334fd12eb1e063cb4d83add0a9ce25ab8baf3561f23a7d4ded9daef672be68c23ee3bd85f73aad091b06
6
+ metadata.gz: 6079984bd4f4cd8603b21f878cce916ba97f51186dc6dcef9a58f3a72a8e1c0c03a5a2eb2633d818241303b17c85588c1c48a0e6818fd2e678c92bc4fd42202d
7
+ data.tar.gz: f4332529cb1985d21e97bca944a31f7e0a3fab69c8d96d8ffb80c9fb6bb0c26393d88bd358655ec8a777b4a870066cc711ec1fb84ec198735060e31eca1aea34
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 0.0.17
2
+ - Improve code analyzer
3
+
1
4
  0.0.16
2
5
  - Analyzer for CamelCased terms
3
6
 
@@ -39,6 +39,12 @@ module Elasticsearch
39
39
  tokenizer: 'standard',
40
40
  filter: %w(code lowercase asciifolding),
41
41
  char_filter: ["code_mapping"]
42
+ },
43
+ code_search_analyzer: {
44
+ type: 'custom',
45
+ tokenizer: 'standard',
46
+ filter: %w(lowercase asciifolding),
47
+ char_filter: ["code_mapping"]
42
48
  }
43
49
  },
44
50
  tokenizer: {
@@ -37,10 +37,12 @@ module Elasticsearch
37
37
  indexes :path, type: :string,
38
38
  analyzer: :path_analyzer
39
39
  indexes :file_name, type: :string,
40
- analyzer: :code_analyzer
40
+ analyzer: :code_analyzer,
41
+ search_analyzer: :code_search_analyzer
41
42
  indexes :content, type: :string,
42
43
  index_options: 'offsets',
43
- analyzer: :code_analyzer
44
+ analyzer: :code_analyzer,
45
+ search_analyzer: :code_search_analyzer
44
46
  indexes :language, type: :string,
45
47
  index: :not_analyzed
46
48
  end
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Git
3
- VERSION = '0.0.16'
3
+ VERSION = '0.0.17'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-elasticsearch-git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Kumanyaev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-09 00:00:00.000000000 Z
13
+ date: 2016-08-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: elasticsearch-model