connectors_utility 8.7.0.0 → 8.10.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/core/connector_settings.rb +5 -1
- data/lib/core/elastic_connector_actions.rb +7 -2
- data/lib/core/scheduler.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cecf3c0cb5d8ae36980ea24589f4a7f696b44d50d7c0ee6a78fbcb178abfafb0
|
4
|
+
data.tar.gz: 205f276fdaa771be59c18aba83eb453774597fa89faa4df06c1e52f554b335ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49e16535ac0af49175f653b674beff17f587a3af76ba95e857f45689999f21b89d221195423ecfd1e1bc50d9591cd3fb8a78d7f05c26da26578a33da7ad910da
|
7
|
+
data.tar.gz: c4e643d267a2fbfed3cae91eba61ee12c2edf08417eeebcb780ebf0eab02fa033ce62cd598058f0c203cdcec4ca2444caa17dac8279d93c9d00cb36cc2bab256
|
@@ -61,9 +61,14 @@ module Core
|
|
61
61
|
|
62
62
|
def connectors_meta
|
63
63
|
# TODO: remove the usage of with_indifferent_access. Ideally this should return a hash or nil if not found
|
64
|
-
alias_mappings = client.indices.get_mapping(:index => Utility::Constants::CONNECTORS_INDEX).with_indifferent_access
|
64
|
+
alias_mappings = client.indices.get_mapping(:index => Utility::Constants::CONNECTORS_INDEX, :ignore => 404).with_indifferent_access
|
65
65
|
index = get_latest_index_in_alias(Utility::Constants::CONNECTORS_INDEX, alias_mappings.keys)
|
66
|
-
alias_mappings.dig(index, 'mappings', '_meta') || {
|
66
|
+
alias_mappings.dig(index, 'mappings', '_meta') || {
|
67
|
+
:extract_binary_content => true,
|
68
|
+
:name => 'ent-search-generic-ingestion',
|
69
|
+
:reduce_whitespace => true,
|
70
|
+
:run_ml_inference => false,
|
71
|
+
}
|
67
72
|
end
|
68
73
|
|
69
74
|
def search_connectors(query, page_size, offset)
|
data/lib/core/scheduler.rb
CHANGED
@@ -80,7 +80,7 @@ module Core
|
|
80
80
|
return true
|
81
81
|
end
|
82
82
|
|
83
|
-
schedule_triggered?(connector_settings.
|
83
|
+
schedule_triggered?(connector_settings.full_sync_scheduling, connector_settings.formatted)
|
84
84
|
end
|
85
85
|
|
86
86
|
def heartbeat_triggered?(connector_settings)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connectors_utility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.10.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -132,7 +132,7 @@ homepage: https://github.com/elastic/connectors-ruby
|
|
132
132
|
licenses:
|
133
133
|
- Elastic-2.0
|
134
134
|
metadata:
|
135
|
-
revision:
|
135
|
+
revision: f2cac87a2b02a3ed2ab6257bc8be742150304120
|
136
136
|
repository: https://github.com/elastic/connectors-ruby
|
137
137
|
post_install_message:
|
138
138
|
rdoc_options: []
|