@backstage/plugin-search-backend-module-elasticsearch 1.2.0-next.1 → 1.2.0-next.2
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.
- package/CHANGELOG.md +11 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +1 -1
- package/dist/index.d.ts +14 -14
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @backstage/plugin-search-backend-module-elasticsearch
|
|
2
2
|
|
|
3
|
+
## 1.2.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-common@0.18.4-next.2
|
|
9
|
+
- @backstage/backend-plugin-api@0.5.1-next.2
|
|
10
|
+
- @backstage/config@1.0.7
|
|
11
|
+
- @backstage/plugin-search-backend-node@1.2.0-next.2
|
|
12
|
+
- @backstage/plugin-search-common@1.2.3-next.0
|
|
13
|
+
|
|
3
14
|
## 1.2.0-next.1
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ElasticSearchQueryTranslator, ElasticSearchCustomIndexTemplate } from '
|
|
|
5
5
|
* @alpha
|
|
6
6
|
* Options for {@link searchModuleElasticsearchEngine}.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type SearchModuleElasticsearchEngineOptions = {
|
|
9
9
|
translator?: ElasticSearchQueryTranslator;
|
|
10
10
|
indexTemplate?: ElasticSearchCustomIndexTemplate;
|
|
11
11
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const isOpenSearchCompatible: (opts: ElasticSearchClientOptions) => opts
|
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
type ElasticSearchClientOptions = ElasticSearchElasticSearchClientOptions | OpenSearchElasticSearchClientOptions;
|
|
31
31
|
/**
|
|
32
32
|
* Options used to configure the `@opensearch-project/opensearch` client.
|
|
33
33
|
*
|
|
@@ -95,14 +95,14 @@ interface BaseElasticSearchClientOptions {
|
|
|
95
95
|
/**
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
type OpenSearchAuth = {
|
|
99
99
|
username: string;
|
|
100
100
|
password: string;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
type ElasticSearchAuth = OpenSearchAuth | {
|
|
106
106
|
apiKey: string | {
|
|
107
107
|
id: string;
|
|
108
108
|
api_key: string;
|
|
@@ -196,7 +196,7 @@ interface ElasticSearchTransportConstructor {
|
|
|
196
196
|
* Elasticsearch specific index template
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
type ElasticSearchCustomIndexTemplate = {
|
|
200
200
|
name: string;
|
|
201
201
|
body: ElasticSearchCustomIndexTemplateBody;
|
|
202
202
|
};
|
|
@@ -204,7 +204,7 @@ declare type ElasticSearchCustomIndexTemplate = {
|
|
|
204
204
|
* Elasticsearch specific index template body
|
|
205
205
|
* @public
|
|
206
206
|
*/
|
|
207
|
-
|
|
207
|
+
type ElasticSearchCustomIndexTemplateBody = {
|
|
208
208
|
/**
|
|
209
209
|
* Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
|
|
210
210
|
*/
|
|
@@ -225,7 +225,7 @@ declare type ElasticSearchCustomIndexTemplateBody = {
|
|
|
225
225
|
/**
|
|
226
226
|
* @public
|
|
227
227
|
*/
|
|
228
|
-
|
|
228
|
+
type ElasticSearchAliasAction = {
|
|
229
229
|
remove: {
|
|
230
230
|
index: any;
|
|
231
231
|
alias: any;
|
|
@@ -249,7 +249,7 @@ declare type ElasticSearchAliasAction = {
|
|
|
249
249
|
/**
|
|
250
250
|
* @public
|
|
251
251
|
*/
|
|
252
|
-
|
|
252
|
+
type ElasticSearchIndexAction = {
|
|
253
253
|
index: {
|
|
254
254
|
_index: string;
|
|
255
255
|
[key: string]: any;
|
|
@@ -306,7 +306,7 @@ declare class ElasticSearchClientWrapper {
|
|
|
306
306
|
* Options for instantiate ElasticSearchSearchEngineIndexer
|
|
307
307
|
* @public
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
type ElasticSearchSearchEngineIndexerOptions = {
|
|
310
310
|
type: string;
|
|
311
311
|
indexPrefix: string;
|
|
312
312
|
indexSeparator: string;
|
|
@@ -352,7 +352,7 @@ declare class ElasticSearchSearchEngineIndexer extends BatchSearchEngineIndexer
|
|
|
352
352
|
* Search query that the elasticsearch engine understands.
|
|
353
353
|
* @public
|
|
354
354
|
*/
|
|
355
|
-
|
|
355
|
+
type ElasticSearchConcreteQuery = {
|
|
356
356
|
documentTypes?: string[];
|
|
357
357
|
elasticSearchQuery: Object;
|
|
358
358
|
pageSize: number;
|
|
@@ -361,19 +361,19 @@ declare type ElasticSearchConcreteQuery = {
|
|
|
361
361
|
* Options available for the Elasticsearch specific query translator.
|
|
362
362
|
* @public
|
|
363
363
|
*/
|
|
364
|
-
|
|
364
|
+
type ElasticSearchQueryTranslatorOptions = {
|
|
365
365
|
highlightOptions?: ElasticSearchHighlightConfig;
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
368
|
* Elasticsearch specific query translator.
|
|
369
369
|
* @public
|
|
370
370
|
*/
|
|
371
|
-
|
|
371
|
+
type ElasticSearchQueryTranslator = (query: SearchQuery, options?: ElasticSearchQueryTranslatorOptions) => ElasticSearchConcreteQuery;
|
|
372
372
|
/**
|
|
373
373
|
* Options for instantiate ElasticSearchSearchEngine
|
|
374
374
|
* @public
|
|
375
375
|
*/
|
|
376
|
-
|
|
376
|
+
type ElasticSearchOptions = {
|
|
377
377
|
logger: Logger;
|
|
378
378
|
config: Config;
|
|
379
379
|
aliasPostfix?: string;
|
|
@@ -382,7 +382,7 @@ declare type ElasticSearchOptions = {
|
|
|
382
382
|
/**
|
|
383
383
|
* @public
|
|
384
384
|
*/
|
|
385
|
-
|
|
385
|
+
type ElasticSearchHighlightOptions = {
|
|
386
386
|
fragmentDelimiter?: string;
|
|
387
387
|
fragmentSize?: number;
|
|
388
388
|
numFragments?: number;
|
|
@@ -390,7 +390,7 @@ declare type ElasticSearchHighlightOptions = {
|
|
|
390
390
|
/**
|
|
391
391
|
* @public
|
|
392
392
|
*/
|
|
393
|
-
|
|
393
|
+
type ElasticSearchHighlightConfig = {
|
|
394
394
|
fragmentDelimiter: string;
|
|
395
395
|
fragmentSize: number;
|
|
396
396
|
numFragments: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-backend-module-elasticsearch",
|
|
3
3
|
"description": "A module for the search backend that implements search using ElasticSearch",
|
|
4
|
-
"version": "1.2.0-next.
|
|
4
|
+
"version": "1.2.0-next.2",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"clean": "backstage-cli package clean"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@backstage/backend-common": "^0.18.4-next.
|
|
38
|
-
"@backstage/backend-plugin-api": "^0.5.1-next.
|
|
37
|
+
"@backstage/backend-common": "^0.18.4-next.2",
|
|
38
|
+
"@backstage/backend-plugin-api": "^0.5.1-next.2",
|
|
39
39
|
"@backstage/config": "^1.0.7",
|
|
40
|
-
"@backstage/plugin-search-backend-node": "^1.2.0-next.
|
|
40
|
+
"@backstage/plugin-search-backend-node": "^1.2.0-next.2",
|
|
41
41
|
"@backstage/plugin-search-common": "^1.2.3-next.0",
|
|
42
42
|
"@elastic/elasticsearch": "^7.13.0",
|
|
43
43
|
"@opensearch-project/opensearch": "^2.0.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"winston": "^3.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@backstage/backend-common": "^0.18.4-next.
|
|
53
|
-
"@backstage/cli": "^0.22.6-next.
|
|
52
|
+
"@backstage/backend-common": "^0.18.4-next.2",
|
|
53
|
+
"@backstage/cli": "^0.22.6-next.2",
|
|
54
54
|
"@elastic/elasticsearch-mock": "^1.0.0",
|
|
55
55
|
"@short.io/opensearch-mock": "^0.3.1"
|
|
56
56
|
},
|