mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Enterprise Search] Copy and doclink improvements for Index Pipeline settings (#143112)
This commit is contained in:
parent
85667b8475
commit
db6dacaa7c
5 changed files with 15 additions and 15 deletions
|
@ -126,7 +126,6 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
|
|||
connectorsMongoDB: `${ENTERPRISE_SEARCH_DOCS}connectors-mongodb.html`,
|
||||
connectorsMySQL: `${ENTERPRISE_SEARCH_DOCS}connectors-mysql.html`,
|
||||
connectorsWorkplaceSearch: `${ENTERPRISE_SEARCH_DOCS}connectors.html#connectors-workplace-search`,
|
||||
contentExtraction: `${ENTERPRISE_SEARCH_DOCS}content-extraction.html`,
|
||||
crawlerGettingStarted: `${ENTERPRISE_SEARCH_DOCS}crawler-getting-started.html`,
|
||||
crawlerManaging: `${ENTERPRISE_SEARCH_DOCS}crawler-managing.html`,
|
||||
crawlerOverview: `${ENTERPRISE_SEARCH_DOCS}crawler.html`,
|
||||
|
|
|
@ -111,7 +111,6 @@ export interface DocLinks {
|
|||
readonly connectorsMongoDB: string;
|
||||
readonly connectorsMySQL: string;
|
||||
readonly connectorsWorkplaceSearch: string;
|
||||
readonly contentExtraction: string;
|
||||
readonly crawlerGettingStarted: string;
|
||||
readonly crawlerManaging: string;
|
||||
readonly crawlerOverview: string;
|
||||
|
|
|
@ -72,8 +72,11 @@ export const Settings: React.FC = () => {
|
|||
'Allow all ingestion mechanisms on your Enterprise Search deployment to extract searchable content from binary files, like PDFs and Word documents. This setting applies to all new Elasticsearch indices created by an Enterprise Search ingestion mechanism.',
|
||||
}
|
||||
)}
|
||||
label={i18n.translate('xpack.enterpriseSearch.content.settings.contactExtraction.label', {
|
||||
defaultMessage: 'Content extraction',
|
||||
})}
|
||||
link={
|
||||
<EuiLink href={docLinks.contentExtraction} target="_blank">
|
||||
<EuiLink href={docLinks.ingestPipelines} target="_blank">
|
||||
{i18n.translate('xpack.enterpriseSearch.content.settings.contactExtraction.link', {
|
||||
defaultMessage: 'Learn more about content extraction',
|
||||
})}
|
||||
|
@ -99,8 +102,11 @@ export const Settings: React.FC = () => {
|
|||
'Whitespace reduction will strip your full-text content of whitespace by default.',
|
||||
}
|
||||
)}
|
||||
label={i18n.translate('xpack.enterpriseSearch.content.settings.whitespaceReduction.label', {
|
||||
defaultMessage: 'Whitespace reduction',
|
||||
})}
|
||||
link={
|
||||
<EuiLink href="TODO TODO TODO TODO" external>
|
||||
<EuiLink href={docLinks.ingestPipelines} external>
|
||||
{i18n.translate('xpack.enterpriseSearch.content.settings.whitespaceReduction.link', {
|
||||
defaultMessage: 'Learn more about whitespace reduction',
|
||||
})}
|
||||
|
@ -129,8 +135,11 @@ export const Settings: React.FC = () => {
|
|||
'ML Inference Pipelines will run as part of your pipelines. You will have to configure processors for each index individually on its pipelines page.',
|
||||
}
|
||||
)}
|
||||
label={i18n.translate('xpack.enterpriseSearch.content.settings.mlInference.label', {
|
||||
defaultMessage: 'ML Inference',
|
||||
})}
|
||||
link={
|
||||
<EuiLink href={docLinks.contentExtraction} target="_blank">
|
||||
<EuiLink href={docLinks.ingestPipelines} target="_blank">
|
||||
{i18n.translate('xpack.enterpriseSearch.content.settings.mlInference.link', {
|
||||
defaultMessage: 'Learn more about content extraction',
|
||||
})}
|
||||
|
|
|
@ -20,6 +20,7 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
interface SettingsPanelProps {
|
||||
description: string;
|
||||
label: string;
|
||||
link: React.ReactNode;
|
||||
onChange: (event: EuiSwitchEvent) => void;
|
||||
title: string;
|
||||
|
@ -28,6 +29,7 @@ interface SettingsPanelProps {
|
|||
|
||||
export const SettingsPanel: React.FC<SettingsPanelProps> = ({
|
||||
description,
|
||||
label,
|
||||
link,
|
||||
onChange,
|
||||
title,
|
||||
|
@ -57,13 +59,7 @@ export const SettingsPanel: React.FC<SettingsPanelProps> = ({
|
|||
<EuiSplitPanel.Inner grow={false} color="subdued">
|
||||
<EuiFlexGroup justifyContent="spaceBetween">
|
||||
<EuiFlexItem>
|
||||
<EuiSwitch
|
||||
checked={value}
|
||||
label={i18n.translate('xpack.enterpriseSearch.content.settings.extractBinaryLabel', {
|
||||
defaultMessage: 'Content extraction',
|
||||
})}
|
||||
onChange={onChange}
|
||||
/>
|
||||
<EuiSwitch checked={value} label={label} onChange={onChange} />
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>{link}</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
|
|
@ -61,7 +61,6 @@ class DocLinks {
|
|||
public connectorsMongoDB: string;
|
||||
public connectorsMySQL: string;
|
||||
public connectorsWorkplaceSearch: string;
|
||||
public contentExtraction: string;
|
||||
public crawlerGettingStarted: string;
|
||||
public crawlerManaging: string;
|
||||
public crawlerOverview: string;
|
||||
|
@ -175,7 +174,6 @@ class DocLinks {
|
|||
this.connectorsMongoDB = '';
|
||||
this.connectorsMySQL = '';
|
||||
this.connectorsWorkplaceSearch = '';
|
||||
this.contentExtraction = '';
|
||||
this.crawlerGettingStarted = '';
|
||||
this.crawlerManaging = '';
|
||||
this.crawlerOverview = '';
|
||||
|
@ -291,7 +289,6 @@ class DocLinks {
|
|||
this.connectorsMongoDB = docLinks.links.enterpriseSearch.connectorsMongoDB;
|
||||
this.connectorsMySQL = docLinks.links.enterpriseSearch.connectorsMySQL;
|
||||
this.connectorsWorkplaceSearch = docLinks.links.enterpriseSearch.connectorsWorkplaceSearch;
|
||||
this.contentExtraction = docLinks.links.enterpriseSearch.contentExtraction;
|
||||
this.crawlerGettingStarted = docLinks.links.enterpriseSearch.crawlerGettingStarted;
|
||||
this.crawlerManaging = docLinks.links.enterpriseSearch.crawlerManaging;
|
||||
this.crawlerOverview = docLinks.links.enterpriseSearch.crawlerOverview;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue