mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [Search rename to elasticsearch (#200774)](https://github.com/elastic/kibana/pull/200774) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sander Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-20T17:14:26Z","message":"Search rename to elasticsearch (#200774)\n\nThis renames the Search solution to Elasticsearch to fit with our\r\nrebranding efforts.","sha":"0cafc7be9eadc97bfe9d93e169a2b25e55c1afa1","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:version","v8.17.0","v8.18.0"],"title":"Search rename to elasticsearch","number":200774,"url":"https://github.com/elastic/kibana/pull/200774","mergeCommit":{"message":"Search rename to elasticsearch (#200774)\n\nThis renames the Search solution to Elasticsearch to fit with our\r\nrebranding efforts.","sha":"0cafc7be9eadc97bfe9d93e169a2b25e55c1afa1"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200774","number":200774,"mergeCommit":{"message":"Search rename to elasticsearch (#200774)\n\nThis renames the Search solution to Elasticsearch to fit with our\r\nrebranding efforts.","sha":"0cafc7be9eadc97bfe9d93e169a2b25e55c1afa1"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
This commit is contained in:
parent
63f1de7e1b
commit
9b137edd77
28 changed files with 113 additions and 66 deletions
|
@ -23,7 +23,7 @@ export const DEFAULT_APP_CATEGORIES: Record<string, AppCategory> = Object.freeze
|
|||
enterpriseSearch: {
|
||||
id: 'enterpriseSearch',
|
||||
label: i18n.translate('core.ui.searchNavList.label', {
|
||||
defaultMessage: 'Search',
|
||||
defaultMessage: 'Elasticsearch',
|
||||
}),
|
||||
order: 2000,
|
||||
euiIconType: 'logoEnterpriseSearch',
|
||||
|
|
|
@ -75,7 +75,7 @@ export const GuideFilters = ({ activeFilter, setActiveFilter, application }: Gui
|
|||
>
|
||||
<FormattedMessage
|
||||
id="guidedOnboardingPackage.gettingStarted.guideFilter.search.buttonLabel"
|
||||
defaultMessage="Search"
|
||||
defaultMessage="Elasticsearch"
|
||||
/>
|
||||
</EuiButton>
|
||||
</EuiFlexItem>
|
||||
|
|
|
@ -76,7 +76,7 @@ export const GuideFilters = ({
|
|||
>
|
||||
<FormattedMessage
|
||||
id="guidedOnboardingPackage.gettingStarted.guideFilter.search.buttonLabel"
|
||||
defaultMessage="Search"
|
||||
defaultMessage="Elasticsearch"
|
||||
/>
|
||||
</EuiButton>
|
||||
</EuiFlexItem>
|
||||
|
|
|
@ -62,7 +62,7 @@ const names: Record<string, string> = {
|
|||
defaultMessage: 'Reporting',
|
||||
}),
|
||||
[SEARCH_CATEGORY]: i18n.translate('management.settings.categoryNames.searchLabel', {
|
||||
defaultMessage: 'Search',
|
||||
defaultMessage: 'Elasticsearch',
|
||||
}),
|
||||
[SECURITY_SOLUTION_CATEGORY]: i18n.translate(
|
||||
'management.settings.categoryNames.securitySolutionLabel',
|
||||
|
|
|
@ -67,7 +67,7 @@ export const INTEGRATION_CATEGORY_DISPLAY: {
|
|||
productivity_security: { title: 'Productivity', parent_id: 'security' },
|
||||
proxy_security: { title: 'Proxy', parent_id: 'security' },
|
||||
sdk_search: { title: 'SDK', parent_id: 'search' },
|
||||
search: { title: 'Search', parent_id: undefined },
|
||||
search: { title: 'Elasticsearch', parent_id: undefined },
|
||||
security: { title: 'Security', parent_id: undefined },
|
||||
stream_processing: { title: 'Stream Processing', parent_id: 'observability' },
|
||||
support: { title: 'Support', parent_id: undefined },
|
||||
|
|
|
@ -27,7 +27,7 @@ import { IngestPipelineParams } from '@kbn/search-connectors';
|
|||
import { ProductFeatures } from './types';
|
||||
|
||||
export const SEARCH_PRODUCT_NAME = i18n.translate('xpack.enterpriseSearch.search.productName', {
|
||||
defaultMessage: 'Search',
|
||||
defaultMessage: 'Elasticsearch',
|
||||
});
|
||||
export const ENTERPRISE_SEARCH_PRODUCT_NAME = i18n.translate('xpack.enterpriseSearch.productName', {
|
||||
defaultMessage: 'Enterprise Search',
|
||||
|
|
|
@ -40,7 +40,7 @@ export const AISearchGuide: React.FC = () => {
|
|||
bottomBorder={false}
|
||||
pageHeader={{
|
||||
pageTitle: i18n.translate('xpack.enterpriseSearch.aiSearch.guide.pageTitle', {
|
||||
defaultMessage: 'Improve search revelance with AI',
|
||||
defaultMessage: 'Improve search relevance with AI',
|
||||
}),
|
||||
}}
|
||||
>
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetAiSearchChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchAISearchPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchAISearchPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchAISearchPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ describe('EnterpriseSearchAnalyticsPageTemplate', () => {
|
|||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetElasticsearchChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchElasticsearchPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchElasticsearchPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchElasticsearchPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetEnterpriseSearchContentChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchContentPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchContentPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchContentPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetSearchChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchOverviewPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchOverviewPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchOverviewPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ describe('EnterpriseSearchRelevancePageTemplate', () => {
|
|||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ items: [], name: 'Search' });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ items: [], name: 'Elasticsearch' });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetSearchExperiencesChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchSearchExperiencesPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchSearchExperiencesPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchSearchExperiencesPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Search', items: [] });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ name: 'Elasticsearch', items: [] });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ describe('useSearchBreadcrumbs', () => {
|
|||
|
||||
expect(useSearchBreadcrumbs(breadcrumbs)).toEqual([
|
||||
{
|
||||
text: 'Search',
|
||||
text: 'Elasticsearch',
|
||||
href: '/app/enterprise_search/overview',
|
||||
onClick: expect.any(Function),
|
||||
},
|
||||
|
@ -180,7 +180,7 @@ describe('useSearchBreadcrumbs', () => {
|
|||
it('shows just the root if breadcrumbs is empty', () => {
|
||||
expect(useSearchBreadcrumbs()).toEqual([
|
||||
{
|
||||
text: 'Search',
|
||||
text: 'Elasticsearch',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
|
|
@ -17,17 +17,17 @@ describe('generateTitle', () => {
|
|||
describe('searchTitle', () => {
|
||||
it('automatically appends the Enterprise Search product onto the pages array', () => {
|
||||
const title = searchTitle(['Setup Guide']);
|
||||
expect(title).toEqual('Setup Guide - Search');
|
||||
expect(title).toEqual('Setup Guide - Elasticsearch');
|
||||
});
|
||||
|
||||
it('can be mixed and matched', () => {
|
||||
const title = searchTitle([appSearchTitle(['Some Page'])]);
|
||||
expect(title).toEqual('Some Page - App Search - Search');
|
||||
expect(title).toEqual('Some Page - App Search - Elasticsearch');
|
||||
});
|
||||
|
||||
it('falls back to product name', () => {
|
||||
const title = searchTitle();
|
||||
expect(title).toEqual('Search');
|
||||
expect(title).toEqual('Elasticsearch');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import React from 'react';
|
|||
import { shallow } from 'enzyme';
|
||||
|
||||
import { EuiCallOut } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template';
|
||||
|
||||
|
@ -35,7 +36,9 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
it('renders children', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchPageTemplateWrapper>
|
||||
);
|
||||
|
||||
|
@ -71,7 +74,13 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper
|
||||
isEmptyState
|
||||
emptyState={<div className="emptyState">Nothing here yet!</div>}
|
||||
emptyState={
|
||||
<div className="emptyState">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.nothingHereYetLabel', {
|
||||
defaultMessage: 'Nothing here yet!',
|
||||
})}
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<div className="test" />
|
||||
</EnterpriseSearchPageTemplateWrapper>
|
||||
|
@ -88,7 +97,13 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper
|
||||
isEmptyState={false}
|
||||
emptyState={<div className="emptyState">Nothing here yet!</div>}
|
||||
emptyState={
|
||||
<div className="emptyState">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.nothingHereYetLabel', {
|
||||
defaultMessage: 'Nothing here yet!',
|
||||
})}
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<div className="test" />
|
||||
</EnterpriseSearchPageTemplateWrapper>
|
||||
|
@ -201,14 +216,14 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
);
|
||||
});
|
||||
|
||||
it('automatically sets the Search logo onto passed solution navs', () => {
|
||||
it('automatically sets the Elasticsearch logo onto passed solution navs', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper solutionNav={{ name: 'Search', items: [] }} />
|
||||
<EnterpriseSearchPageTemplateWrapper solutionNav={{ name: 'Elasticsearch', items: [] }} />
|
||||
);
|
||||
|
||||
expect(wrapper.find(KibanaPageTemplate).prop('solutionNav')).toEqual({
|
||||
icon: 'logoEnterpriseSearch',
|
||||
name: 'Search',
|
||||
name: 'Elasticsearch',
|
||||
items: [],
|
||||
});
|
||||
});
|
||||
|
@ -216,14 +231,14 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
it('sets the solutionNavIcon passed', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper
|
||||
solutionNav={{ name: 'Search', items: [] }}
|
||||
solutionNav={{ name: 'Elasticsearch', items: [] }}
|
||||
solutionNavIcon="logoElasticsearch"
|
||||
/>
|
||||
);
|
||||
|
||||
expect(wrapper.find(KibanaPageTemplate).prop('solutionNav')).toEqual({
|
||||
icon: 'logoElasticsearch',
|
||||
name: 'Search',
|
||||
name: 'Elasticsearch',
|
||||
items: [],
|
||||
});
|
||||
});
|
||||
|
@ -231,7 +246,13 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
|
||||
describe('Embedded Console', () => {
|
||||
it('renders embedded console if available', () => {
|
||||
const FakeEmbeddedConsole: React.FC = () => <div className="embedded_console">foo</div>;
|
||||
const FakeEmbeddedConsole: React.FC = () => (
|
||||
<div className="embedded_console">
|
||||
{i18n.translate('xpack.enterpriseSearch.fakeEmbeddedConsole.div.fooLabel', {
|
||||
defaultMessage: 'foo',
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
const consolePlugin = { EmbeddableConsole: FakeEmbeddedConsole };
|
||||
|
||||
setMockValues({
|
||||
|
@ -241,14 +262,22 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchPageTemplateWrapper>
|
||||
);
|
||||
|
||||
expect(wrapper.find(consolePlugin.EmbeddableConsole).exists()).toBe(true);
|
||||
});
|
||||
it('Hides embedded console if available but page template prop set to hide', () => {
|
||||
const FakeEmbeddedConsole: React.FC = () => <div className="embedded_console">foo</div>;
|
||||
const FakeEmbeddedConsole: React.FC = () => (
|
||||
<div className="embedded_console">
|
||||
{i18n.translate('xpack.enterpriseSearch.fakeEmbeddedConsole.div.fooLabel', {
|
||||
defaultMessage: 'foo',
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
const consolePlugin = { EmbeddableConsole: FakeEmbeddedConsole };
|
||||
|
||||
setMockValues({
|
||||
|
@ -258,7 +287,9 @@ describe('EnterpriseSearchPageTemplateWrapper', () => {
|
|||
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchPageTemplateWrapper hideEmbeddedConsole>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchPageTemplateWrapper>
|
||||
);
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import React from 'react';
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { SetVectorSearchChrome } from '../../../shared/kibana_chrome';
|
||||
import { EnterpriseSearchPageTemplateWrapper } from '../../../shared/layout';
|
||||
import { SendEnterpriseSearchTelemetry } from '../../../shared/telemetry';
|
||||
|
@ -23,12 +25,14 @@ describe('EnterpriseSearchVectorSearchPageTemplate', () => {
|
|||
it('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<EnterpriseSearchVectorSearchPageTemplate>
|
||||
<div className="hello">world</div>
|
||||
<div className="hello">
|
||||
{i18n.translate('xpack.enterpriseSearch..div.worldLabel', { defaultMessage: 'world' })}
|
||||
</div>
|
||||
</EnterpriseSearchVectorSearchPageTemplate>
|
||||
);
|
||||
|
||||
expect(wrapper.type()).toEqual(EnterpriseSearchPageTemplateWrapper);
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ items: [], name: 'Search' });
|
||||
expect(wrapper.prop('solutionNav')).toEqual({ items: [], name: 'Elasticsearch' });
|
||||
expect(wrapper.find('.hello').text()).toEqual('world');
|
||||
});
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ export interface DynamicSideNavItems {
|
|||
const title = i18n.translate(
|
||||
'xpack.enterpriseSearch.searchNav.headerSolutionSwitcher.searchSolutionTitle',
|
||||
{
|
||||
defaultMessage: 'Search',
|
||||
defaultMessage: 'Elasticsearch',
|
||||
}
|
||||
);
|
||||
const icon = 'logoElasticsearch';
|
||||
|
|
|
@ -48,7 +48,7 @@ export const createIndexPipelineDefinitions = async (
|
|||
const ingestPipeline = {
|
||||
_meta: {
|
||||
managed: true,
|
||||
managed_by: 'Search',
|
||||
managed_by: 'Elasticsearch',
|
||||
},
|
||||
description: `Ingest pipeline for the '${indexName}' index`,
|
||||
id: `${indexName}`,
|
||||
|
|
|
@ -66,13 +66,13 @@ const connectors = [
|
|||
},
|
||||
];
|
||||
|
||||
describe('Enterprise Search search provider', () => {
|
||||
describe('Search search provider', () => {
|
||||
const crawlerResult = {
|
||||
icon: 'crawlerIcon.svg',
|
||||
id: 'elastic-crawler',
|
||||
score: 75,
|
||||
title: 'Elastic Web Crawler',
|
||||
type: 'Search',
|
||||
type: 'Elasticsearch',
|
||||
url: {
|
||||
path: `${ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL}/crawlers/new_crawler`,
|
||||
prependBasePath: true,
|
||||
|
@ -84,7 +84,7 @@ describe('Enterprise Search search provider', () => {
|
|||
id: 'mongodb',
|
||||
score: 75,
|
||||
title: 'MongoDB',
|
||||
type: 'Search',
|
||||
type: 'Elasticsearch',
|
||||
url: {
|
||||
path: `${ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL}/connectors/new_connector?connector_type=connector_client&service_type=mongodb`,
|
||||
prependBasePath: true,
|
||||
|
@ -96,7 +96,7 @@ describe('Enterprise Search search provider', () => {
|
|||
id: 'mongodb',
|
||||
score: 75,
|
||||
title: 'MongoDB',
|
||||
type: 'Search',
|
||||
type: 'Elasticsearch',
|
||||
url: {
|
||||
path: `${ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL}/connectors/new_connector?connector_type=native&service_type=mongodb`,
|
||||
prependBasePath: true,
|
||||
|
@ -108,7 +108,7 @@ describe('Enterprise Search search provider', () => {
|
|||
id: '',
|
||||
score: 75,
|
||||
title: 'Customized connector',
|
||||
type: 'Search',
|
||||
type: 'Elasticsearch',
|
||||
url: {
|
||||
path: `${ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL}/connectors/new_connector?connector_type=connector_client&service_type=`,
|
||||
prependBasePath: true,
|
||||
|
|
|
@ -62,9 +62,7 @@ export function toSearchResult({
|
|||
id: serviceType,
|
||||
score,
|
||||
title: name,
|
||||
type: i18n.translate('xpack.enterpriseSearch.searchProvider.type.name', {
|
||||
defaultMessage: 'Search',
|
||||
}),
|
||||
type: 'Elasticsearch',
|
||||
url: {
|
||||
path: url ?? newUrl,
|
||||
prependBasePath: true,
|
||||
|
@ -108,18 +106,15 @@ export function getSearchResultProvider(
|
|||
]
|
||||
: []),
|
||||
...(config.hasConnectors ? connectorTypes : []),
|
||||
...(config.canDeployEntSearch
|
||||
? [
|
||||
{
|
||||
keywords: ['esre', 'search'],
|
||||
name: i18n.translate('xpack.enterpriseSearch.searchProvider.aiSearch.name', {
|
||||
defaultMessage: 'Search AI',
|
||||
}),
|
||||
serviceType: 'ai_search',
|
||||
url: AI_SEARCH_PLUGIN.URL,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
||||
{
|
||||
keywords: ['esre', 'search'],
|
||||
name: i18n.translate('xpack.enterpriseSearch.searchProvider.aiSearch.name', {
|
||||
defaultMessage: 'Search AI',
|
||||
}),
|
||||
serviceType: 'ai_search',
|
||||
url: AI_SEARCH_PLUGIN.URL,
|
||||
},
|
||||
];
|
||||
const result = services
|
||||
.map((service) => {
|
||||
|
|
|
@ -43,7 +43,7 @@ const getOptions = ({ size }: EuiThemeComputed): Array<EuiSuperSelectOption<Solu
|
|||
<EuiIcon type="logoElasticsearch" css={iconCss} />
|
||||
{i18n.translate(
|
||||
'xpack.spaces.management.manageSpacePage.solutionViewSelect.searchOptionLabel',
|
||||
{ defaultMessage: 'Search' }
|
||||
{ defaultMessage: 'Elasticsearch' }
|
||||
)}
|
||||
</>
|
||||
),
|
||||
|
|
|
@ -28,7 +28,7 @@ const LearnMoreLink = () => (
|
|||
|
||||
const solutionMap: Record<SolutionId, string> = {
|
||||
es: i18n.translate('xpack.spaces.navControl.tour.esSolution', {
|
||||
defaultMessage: 'Search',
|
||||
defaultMessage: 'Elasticsearch',
|
||||
}),
|
||||
security: i18n.translate('xpack.spaces.navControl.tour.securitySolution', {
|
||||
defaultMessage: 'Security',
|
||||
|
|
|
@ -21,7 +21,7 @@ const SolutionOptions: Record<
|
|||
label: (
|
||||
<FormattedMessage
|
||||
id="xpack.spaces.spaceSolutionBadge.elasticsearch"
|
||||
defaultMessage="Search"
|
||||
defaultMessage="Elasticsearch"
|
||||
/>
|
||||
),
|
||||
},
|
||||
|
|
|
@ -18930,7 +18930,6 @@
|
|||
"xpack.enterpriseSearch.searchNav.otherTools": "Autres outils",
|
||||
"xpack.enterpriseSearch.searchNav.relevance": "Pertinence",
|
||||
"xpack.enterpriseSearch.searchProvider.aiSearch.name": "Intelligence artificielle de recherche",
|
||||
"xpack.enterpriseSearch.searchProvider.type.name": "Recherche",
|
||||
"xpack.enterpriseSearch.searchProvider.webCrawler.name": "Robot d'indexation d'Elastic",
|
||||
"xpack.enterpriseSearch.selectConnector.badgeOnClick.ariaLabel": "Cliquer pour ouvrir la fenêtre contextuelle d'explication du connecteur",
|
||||
"xpack.enterpriseSearch.selectConnector.connectorClientBadgeLabel": "Autogéré",
|
||||
|
|
|
@ -18900,7 +18900,6 @@
|
|||
"xpack.enterpriseSearch.searchNav.mngt": "スタック管理",
|
||||
"xpack.enterpriseSearch.searchNav.otherTools": "その他のツール",
|
||||
"xpack.enterpriseSearch.searchProvider.aiSearch.name": "検索AI",
|
||||
"xpack.enterpriseSearch.searchProvider.type.name": "検索",
|
||||
"xpack.enterpriseSearch.searchProvider.webCrawler.name": "Elastic Webクローラー",
|
||||
"xpack.enterpriseSearch.selectConnector.badgeOnClick.ariaLabel": "クリックすると、コネクター説明ポップオーバーが開きます",
|
||||
"xpack.enterpriseSearch.selectConnector.connectorClientBadgeLabel": "セルフマネージド",
|
||||
|
|
|
@ -18947,7 +18947,6 @@
|
|||
"xpack.enterpriseSearch.searchNav.otherTools": "其他工具",
|
||||
"xpack.enterpriseSearch.searchNav.relevance": "相关性",
|
||||
"xpack.enterpriseSearch.searchProvider.aiSearch.name": "搜索 AI",
|
||||
"xpack.enterpriseSearch.searchProvider.type.name": "搜索",
|
||||
"xpack.enterpriseSearch.searchProvider.webCrawler.name": "Elastic 网络爬虫",
|
||||
"xpack.enterpriseSearch.selectConnector.badgeOnClick.ariaLabel": "单击以打开连接器说明弹出框",
|
||||
"xpack.enterpriseSearch.selectConnector.connectorClientBadgeLabel": "自管型",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue