@openstax/ts-utils 1.30.5 → 1.30.6
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.
|
@@ -26,6 +26,9 @@ export const openSearchService = (initializer = {}) => (configProvider) => {
|
|
|
26
26
|
maxRetries: 4, // default is 3
|
|
27
27
|
requestTimeout: 5000, // default is 30000
|
|
28
28
|
pingTimeout: 2000, // default is 30000
|
|
29
|
+
sniffOnConnectionFault: true,
|
|
30
|
+
sniffOnStart: true,
|
|
31
|
+
resurrectStrategy: 'ping',
|
|
29
32
|
node: await resolveConfigValue(config.node),
|
|
30
33
|
}));
|
|
31
34
|
return (indexConfig) => {
|
|
@@ -61,6 +64,9 @@ export const openSearchService = (initializer = {}) => (configProvider) => {
|
|
|
61
64
|
body: params.body,
|
|
62
65
|
id: params.id,
|
|
63
66
|
refresh: true
|
|
67
|
+
}, {
|
|
68
|
+
requestTimeout: 10000,
|
|
69
|
+
maxRetries: 1,
|
|
64
70
|
});
|
|
65
71
|
};
|
|
66
72
|
const bulkIndex = async (items) => {
|
|
@@ -72,6 +78,9 @@ export const openSearchService = (initializer = {}) => (configProvider) => {
|
|
|
72
78
|
item.body
|
|
73
79
|
]),
|
|
74
80
|
refresh: true
|
|
81
|
+
}, {
|
|
82
|
+
requestTimeout: 10000,
|
|
83
|
+
maxRetries: 1,
|
|
75
84
|
});
|
|
76
85
|
};
|
|
77
86
|
const search = async (options) => {
|