-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]> (cherry picked from commit c8bdacc) Co-authored-by: Tyler Ohlsen <[email protected]>
- Loading branch information
1 parent
2bed20b
commit 3447d9a
Showing
29 changed files
with
323 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
*/ | ||
|
||
export * from './transformer'; | ||
export * from './indexer'; | ||
export * from './indices'; | ||
export * from './other'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CATEGORY, COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic index placeholder UI component. Input/output depends on ingest or search context. | ||
* Does not have any functionality. | ||
*/ | ||
export class BaseIndex extends BaseComponent { | ||
constructor(category: COMPONENT_CATEGORY) { | ||
super(); | ||
this.type = COMPONENT_CLASS.INDEX; | ||
this.label = 'Index'; | ||
this.description = 'An OpenSearch index'; | ||
this.inputs = [ | ||
{ | ||
id: | ||
category === COMPONENT_CATEGORY.INGEST | ||
? 'document' | ||
: 'search_request', | ||
label: | ||
category === COMPONENT_CATEGORY.INGEST | ||
? 'Document' | ||
: 'Search Request', | ||
acceptMultiple: false, | ||
}, | ||
]; | ||
this.outputs = | ||
category === COMPONENT_CATEGORY.INGEST | ||
? [] | ||
: [ | ||
{ | ||
id: 'search_response', | ||
label: 'Search Response', | ||
}, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CATEGORY, COMPONENT_CLASS } from '../../../common'; | ||
import { BaseIndex } from './base_index'; | ||
|
||
/** | ||
* A basic knn index placeholder UI component. Input/output depends on ingest or search context. | ||
* Does not have any functionality. | ||
*/ | ||
export class KnnIndex extends BaseIndex { | ||
constructor(category: COMPONENT_CATEGORY) { | ||
super(category); | ||
this.type = COMPONENT_CLASS.KNN_INDEX; | ||
this.label = 'k-NN Index'; | ||
this.description = 'A specialized k-NN index'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic search request placeholder UI component. | ||
* Does not have any functionality. | ||
*/ | ||
export class SearchRequest extends BaseComponent { | ||
constructor() { | ||
super(); | ||
this.type = COMPONENT_CLASS.SEARCH_REQUEST; | ||
this.label = 'Search Request'; | ||
this.description = 'An OpenSearch search request'; | ||
this.outputs = [ | ||
{ | ||
id: 'search_request', | ||
label: this.label, | ||
}, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic search response placeholder UI component. | ||
* Does not have any functionality. | ||
*/ | ||
export class SearchResponse extends BaseComponent { | ||
constructor() { | ||
super(); | ||
this.type = COMPONENT_CLASS.SEARCH_RESPONSE; | ||
this.label = 'Search Response'; | ||
this.description = 'OpenSearch search response'; | ||
this.inputs = [ | ||
{ id: 'search_response', label: this.label, acceptMultiple: false }, | ||
]; | ||
} | ||
} |
Oops, something went wrong.