elastic_ar_sync 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf6c9a44b983540db39c6a9542af4a731d49975ca4f1b12f46911eb1e1dd98d0
4
- data.tar.gz: 40906b515c533360c1eb36301c22a8325dcb3570cd87a7aad6728641456f60c3
3
+ metadata.gz: 53be1f275059f78080af2ed902fbbf5d10af6fcf62b31b189fe22294b9623742
4
+ data.tar.gz: ef20e4a2d9ee446e9ea741b6758c4609a3f4f015ec0e5815435fa706b9cc2beb
5
5
  SHA512:
6
- metadata.gz: 625d2d7cbfc2c08bada8d98cf63302ea3f2bd7b3951696b21ceb3f1a9ff2b87ed1c826904a7e6031ddf0a2bb52eee57efd65d3c7480e2b01b12ba59b78d30670
7
- data.tar.gz: b614f8ce783f01c6c32f68b11276668d31586da5aa6025a7e08db5e12070b53a2c10d418cd1b52711221ce8f341f8babaa8f06ad2908d608c097586eb8ad40bd
6
+ metadata.gz: 90c15465ed3b20a2055e10cf09c1d6719c5d6c21d7ae070f373e5afbe04f1053fc0d4eda106a905b9d21ae80a7a19e4f2bae1d5d40453abb523f3f8e964bf7c1
7
+ data.tar.gz: 814e9fb8c93ab4532d546d61f1063f134b4448154be246089cdf45291f0108ac4c1485a3a7853be38f3bde1265c3b7eb65ad3d81028b479c3a7bc536f3f7506e
@@ -103,11 +103,11 @@ module ElasticArSync
103
103
  "analyzer": {
104
104
  "normal_ja_analyzer": {
105
105
  "type": "custom",
106
- "tokenizer": "kuromiji_tokenizer",
106
+ "tokenizer": "kuromoji_tokenizer",
107
107
  "mode": "search",
108
108
  "char_filter": [
109
- "icu_normalizer", # ユニコード正規化
110
- "kuromoji_iteration_mark" # 踊り字の正規化(時々=>時時、こゝろ=>こころ)
109
+ "icu_normalizer",
110
+ "kuromoji_iteration_mark"
111
111
  ],
112
112
  "filter": [
113
113
  "kuromoji_baseform",
@@ -148,12 +148,16 @@ module ElasticArSync
148
148
  end
149
149
 
150
150
  def current_index
151
- get_aliases.select { |_, value| value["aliases"].present? }.keys.first
151
+ __elasticsearch__.client.indices.get_alias(index: index_name).keys.first
152
152
  end
153
153
 
154
154
  def current_mapping
155
155
  __elasticsearch__.client.indices.get_mapping[current_index]["mappings"]["_doc"]["properties"]
156
156
  end
157
+
158
+ def current_settings
159
+ __elasticsearch__.client.indices.get_settings[current_index]
160
+ end
157
161
  end
158
162
  end
159
163
  end
@@ -1,3 +1,3 @@
1
1
  module ElasticArSync
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_ar_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - KitakatsuTed