-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d63f72
commit 3baa1af
Showing
8 changed files
with
361 additions
and
55 deletions.
There are no files selected for viewing
228 changes: 228 additions & 0 deletions
228
packages/kbn-search-api-panels/components/preprocess_data.tsx
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,228 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
import { | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiSpacer, | ||
EuiText, | ||
EuiThemeProvider, | ||
EuiTitle, | ||
EuiToken, | ||
EuiPanel, | ||
EuiLink, | ||
EuiFlexGrid, | ||
} from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import React from 'react'; | ||
|
||
export const PreprocessDataPanel: React.FC = () => { | ||
return ( | ||
<EuiThemeProvider colorMode="dark"> | ||
<EuiPanel paddingSize="xl"> | ||
<EuiFlexGrid direction="column" columns={2} gutterSize="xl"> | ||
<EuiFlexItem> | ||
<EuiFlexGroup alignItems="flexStart" justifyContent="flexStart"> | ||
<EuiFlexItem grow={false}> | ||
<EuiToken iconType="sparkles" size="l" color="#466B8D" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="s"> | ||
<h3> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.dataEnrichment.title', | ||
{ | ||
defaultMessage: 'Data enrichment', | ||
} | ||
)} | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="s"> | ||
<p> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.dataEnrichment.description', | ||
{ | ||
defaultMessage: | ||
'Add information from external sources or apply transformations to your documents for more contextual, insightful search.', | ||
} | ||
)} | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
<EuiLink href={'#'} target="_blank"> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.dataEnrichment.learnMore', | ||
{ | ||
defaultMessage: 'Learn More', | ||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiFlexGroup alignItems="flexStart" justifyContent="flexStart"> | ||
<EuiFlexItem grow={false}> | ||
<EuiToken iconType="logstashFilter" size="l" color="#466B8D" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="s"> | ||
<h3> | ||
{i18n.translate('searchApiPanels.pipeline.overview.dataFiltering.title', { | ||
defaultMessage: 'Data filtering', | ||
})} | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="s"> | ||
{i18n.translate('searchApiPanels.pipeline.overview.dataFiltering.description', { | ||
defaultMessage: | ||
'Remove fields from documents like sensitive information from documents before indexing.', | ||
})} | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
<EuiLink href={'#'} target="_blank"> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.dataFiltering.learnMore', | ||
{ | ||
defaultMessage: 'Learn More', | ||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiFlexGroup alignItems="flexStart" justifyContent="flexStart"> | ||
<EuiFlexItem grow={false}> | ||
<EuiToken iconType="tokenArray" size="l" fill="none" color="#466B8D" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="s"> | ||
<h3> | ||
{i18n.translate('searchApiPanels.pipeline.overview.arrayJsonHandling.title', { | ||
defaultMessage: 'Array/JSON handling', | ||
})} | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="s"> | ||
{i18n.translate( | ||
'searchApiPanels.pipeline.overview.arrayJsonHandling.description', | ||
{ | ||
defaultMessage: 'Run batch processors, parse JSON data and sort elements.', | ||
} | ||
)} | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
<EuiLink href={'#'} target="_blank"> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.arrayJsonHandling.learnMore', | ||
{ | ||
defaultMessage: 'Learn More', | ||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiFlexGroup alignItems="flexStart" justifyContent="flexStart"> | ||
<EuiFlexItem grow={false}> | ||
<EuiToken iconType="cut" size="l" color="#466B8D" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="s"> | ||
<h3> | ||
{i18n.translate('searchApiPanels.pipeline.overview.dataTransformation.title', { | ||
defaultMessage: 'Data transformation', | ||
})} | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="s"> | ||
{i18n.translate( | ||
'searchApiPanels.pipeline.overview.dataTransformation.description', | ||
{ | ||
defaultMessage: | ||
'Parse information from your documents to ensure they conform to a standardized format.', | ||
} | ||
)} | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="s"> | ||
<p> | ||
<EuiLink href={'#'} target="_blank"> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.dataTransformation.learnMore', | ||
{ | ||
defaultMessage: 'Learn More', | ||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiFlexGroup alignItems="flexStart" justifyContent="flexStart"> | ||
<EuiFlexItem grow={false}> | ||
<EuiToken iconType="controlsVertical" size="l" color="#466B8D" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="s"> | ||
<h3> | ||
{i18n.translate('searchApiPanels.pipeline.overview.pipelineHandling.title', { | ||
defaultMessage: 'Pipeline handling', | ||
})} | ||
</h3> | ||
</EuiTitle> | ||
|
||
<EuiText size="s"> | ||
{i18n.translate( | ||
'searchApiPanels.pipeline.overview.pipelineHandling.description', | ||
{ | ||
defaultMessage: | ||
'Handle error exceptions, execute another pipeline or reroute document to another index', | ||
} | ||
)} | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
<EuiLink href={'#'} target="_blank"> | ||
{i18n.translate( | ||
'searchApiPanels.preprocessData.overview.pipelineHandling.learnMore', | ||
{ | ||
defaultMessage: 'Learn More', | ||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
</EuiFlexGrid> | ||
</EuiPanel> | ||
</EuiThemeProvider> | ||
); | ||
}; |
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
Oops, something went wrong.