mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Enterprise Search] Search application move View API Call button to SearchBox split button (#160300)
## Summary
* Uncomment view api button changes and add view api button within searchBar
box
### Screen Recording
c2bcfaac
-42e4-400b-94c3-f61b908fb02f
This commit is contained in:
parent
88871faf60
commit
78cec76d24
8 changed files with 90 additions and 165 deletions
|
@ -353,7 +353,7 @@ export const SearchApplicationSchema: React.FC = () => {
|
|||
{hasSchemaConflicts && (
|
||||
<EuiCallOut
|
||||
title={i18n.translate(
|
||||
'xpack.enterpriseSearch.content.applications.schema.conflictsCallOut.title',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.title',
|
||||
{ defaultMessage: 'Potential field mapping issues found' }
|
||||
)}
|
||||
iconType="error"
|
||||
|
@ -361,14 +361,14 @@ export const SearchApplicationSchema: React.FC = () => {
|
|||
>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.content.applications.schema.conflictsCallOut.description"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.description"
|
||||
defaultMessage="Schema field type conflicts can be resolved by navigating to the source index directly and updating the field type of the conflicting field(s) to match that of the other source indices."
|
||||
/>
|
||||
</p>
|
||||
{!onlyShowConflicts && (
|
||||
<EuiButton color="danger" fill onClick={toggleOnlyShowConflicts}>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.content.applications.schema.conflictsCallOut.button"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.button"
|
||||
defaultMessage="View conflicts"
|
||||
/>
|
||||
</EuiButton>
|
||||
|
|
|
@ -51,7 +51,7 @@ export const APICallFlyout: React.FC<APICallFlyoutProps> = ({
|
|||
<EuiTitle>
|
||||
<h2>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.title"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.apiCallFlyout.title"
|
||||
defaultMessage="API Call"
|
||||
/>
|
||||
</h2>
|
||||
|
@ -65,13 +65,13 @@ export const APICallFlyout: React.FC<APICallFlyoutProps> = ({
|
|||
<EuiTabs bottomBorder={false}>
|
||||
<EuiTab isSelected={tab === 'request'} onClick={() => setTab('request')}>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.requestTab"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.apiCallFlyout.requestTab"
|
||||
defaultMessage="Request"
|
||||
/>
|
||||
</EuiTab>
|
||||
<EuiTab isSelected={tab === 'response'} onClick={() => setTab('response')}>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.responseTab"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.apiCallFlyout.responseTab"
|
||||
defaultMessage="Response"
|
||||
/>
|
||||
</EuiTab>
|
||||
|
@ -85,7 +85,7 @@ export const APICallFlyout: React.FC<APICallFlyoutProps> = ({
|
|||
target="_blank"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.searchEndpointLink"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.apiCallFlyout.searchEndpointLink"
|
||||
defaultMessage="Search endpoint"
|
||||
/>
|
||||
</EuiLinkTo>
|
||||
|
|
|
@ -53,7 +53,7 @@ export const DocumentFlyout: React.FC = () => {
|
|||
const columns: Array<EuiBasicTableColumn<ConvertedResultWithType>> = [
|
||||
{
|
||||
name: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldLabel',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.documentFlyout.fieldLabel',
|
||||
{ defaultMessage: 'Field' }
|
||||
),
|
||||
render: ({ field: key, type }: ConvertedResultWithType) => (
|
||||
|
@ -71,7 +71,7 @@ export const DocumentFlyout: React.FC = () => {
|
|||
{
|
||||
field: 'value',
|
||||
name: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.valueLabel',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.documentFlyout.valueLabel',
|
||||
{ defaultMessage: 'Value' }
|
||||
),
|
||||
render: (value: FieldValue) => (
|
||||
|
@ -92,7 +92,7 @@ export const DocumentFlyout: React.FC = () => {
|
|||
<EuiTitle size="m">
|
||||
<h2>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.title"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.documentFlyout.title"
|
||||
defaultMessage="Document: {id}"
|
||||
values={{ id }}
|
||||
/>
|
||||
|
@ -100,7 +100,7 @@ export const DocumentFlyout: React.FC = () => {
|
|||
</EuiTitle>
|
||||
<EuiTextColor color="subdued">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldCount"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.documentFlyout.fieldCount"
|
||||
defaultMessage="{fieldCount} {fieldCount, plural, one {Field} other {Fields}}"
|
||||
values={{ fieldCount: items.length }}
|
||||
/>
|
||||
|
|
|
@ -63,25 +63,28 @@ import { EnterpriseSearchApplicationsPageTemplate } from '../../layout/page_temp
|
|||
import { SearchApplicationIndicesLogic } from '../search_application_indices_logic';
|
||||
import { SearchApplicationViewLogic } from '../search_application_view_logic';
|
||||
|
||||
import { APICallData, APICallFlyout } from './api_call_flyout';
|
||||
|
||||
import { DocumentProvider } from './document_context';
|
||||
import { DocumentFlyout } from './document_flyout';
|
||||
import { SearchApplicationSearchPreviewLogic } from './search_preview_logic';
|
||||
|
||||
import {
|
||||
InputView,
|
||||
PagingInfoView,
|
||||
RESULTS_PER_PAGE_OPTIONS,
|
||||
ResultView,
|
||||
ResultsPerPageView,
|
||||
ResultsView,
|
||||
Sorting,
|
||||
SearchBar,
|
||||
} from './search_ui_components';
|
||||
import '../search_application_layout.scss';
|
||||
|
||||
class InternalSearchApplicationTransporter implements Transporter {
|
||||
constructor(
|
||||
private http: HttpSetup,
|
||||
private searchApplicationName: string // uncomment and add setLastAPICall to constructor when view this API call is needed // private setLastAPICall?: (apiCallData: APICallData) => void
|
||||
private searchApplicationName: string,
|
||||
private setLastAPICall: (apiCallData: APICallData) => void
|
||||
) {}
|
||||
|
||||
async performRequest(request: SearchRequest) {
|
||||
|
@ -91,7 +94,7 @@ class InternalSearchApplicationTransporter implements Transporter {
|
|||
body: JSON.stringify(request),
|
||||
});
|
||||
|
||||
// this.setLastAPICall({ request, response }); Uncomment when view this API call is needed
|
||||
this.setLastAPICall({ request, response });
|
||||
|
||||
const withUniqueIds = {
|
||||
...response,
|
||||
|
@ -198,7 +201,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
onClick={setCloseConfiguration}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.buttonTitle',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.buttonTitle',
|
||||
{
|
||||
defaultMessage: 'Configuration',
|
||||
}
|
||||
|
@ -213,7 +216,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
<EuiTitle size="xxxs">
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.contentTitle',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.contentTitle',
|
||||
{
|
||||
defaultMessage: 'Content',
|
||||
}
|
||||
|
@ -236,7 +239,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.Indices',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.content.Indices',
|
||||
{
|
||||
defaultMessage: 'Indices',
|
||||
}
|
||||
|
@ -256,13 +259,13 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
>
|
||||
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.schema"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.content.schema"
|
||||
defaultMessage="Schema"
|
||||
/>
|
||||
{hasSchemaConflicts && (
|
||||
<EuiText size="s" color="danger">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.schemaConflict"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.content.schemaConflict"
|
||||
defaultMessage="Conflict"
|
||||
/>
|
||||
</EuiText>
|
||||
|
@ -274,7 +277,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
<EuiTitle size="xxxs">
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connectTitle',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.connectTitle',
|
||||
{
|
||||
defaultMessage: 'Connect',
|
||||
}
|
||||
|
@ -296,7 +299,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connect.Api',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.connect.Api',
|
||||
{
|
||||
defaultMessage: 'API',
|
||||
}
|
||||
|
@ -307,7 +310,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
<EuiTitle size="xxxs">
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settingsTitle',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.settingsTitle',
|
||||
{
|
||||
defaultMessage: 'Settings',
|
||||
}
|
||||
|
@ -332,7 +335,7 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
<EuiTextColor color="danger">
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settings.delete',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.configuration.settings.delete',
|
||||
{
|
||||
defaultMessage: 'Delete this app',
|
||||
}
|
||||
|
@ -347,9 +350,9 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
};
|
||||
export const SearchApplicationSearchPreview: React.FC = () => {
|
||||
const { http } = useValues(HttpLogic);
|
||||
// const [showAPICallFlyout, setShowAPICallFlyout] = useState<boolean>(false); Uncomment when view this API call is needed
|
||||
const [showAPICallFlyout, setShowAPICallFlyout] = useState<boolean>(false);
|
||||
const [showConfigurationPopover, setShowConfigurationPopover] = useState<boolean>(false);
|
||||
// const [lastAPICall, setLastAPICall] = useState<null | APICallData>(null); Uncomment when view this API call is needed
|
||||
const [lastAPICall, setLastAPICall] = useState<null | APICallData>(null);
|
||||
const { searchApplicationName, isLoadingSearchApplication, hasSchemaConflicts } = useValues(
|
||||
SearchApplicationViewLogic
|
||||
);
|
||||
|
@ -357,7 +360,11 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
const { searchApplicationData } = useValues(SearchApplicationIndicesLogic);
|
||||
|
||||
const config: SearchDriverOptions = useMemo(() => {
|
||||
const transporter = new InternalSearchApplicationTransporter(http, searchApplicationName);
|
||||
const transporter = new InternalSearchApplicationTransporter(
|
||||
http,
|
||||
searchApplicationName,
|
||||
setLastAPICall
|
||||
);
|
||||
const connector = new EnginesAPIConnector(transporter);
|
||||
|
||||
return {
|
||||
|
@ -368,7 +375,7 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
result_fields: resultFields,
|
||||
},
|
||||
};
|
||||
}, [http, searchApplicationName, resultFields]);
|
||||
}, [http, searchApplicationName, setLastAPICall, resultFields]);
|
||||
|
||||
if (!searchApplicationData) return null;
|
||||
|
||||
|
@ -377,7 +384,7 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
pageChrome={[
|
||||
searchApplicationName,
|
||||
i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.pageChrome',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.pageChrome',
|
||||
{
|
||||
defaultMessage: 'Search Preview',
|
||||
}
|
||||
|
@ -407,7 +414,31 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
<SearchProvider config={config}>
|
||||
<EuiFlexGroup>
|
||||
<EuiFlexItem>
|
||||
<SearchBox inputView={InputView} />
|
||||
<SearchBox
|
||||
inputView={({ getInputProps }) => (
|
||||
<SearchBar
|
||||
additionalInputProps={getInputProps({
|
||||
append: (
|
||||
<EuiButtonEmpty
|
||||
color="primary"
|
||||
iconType="eye"
|
||||
onClick={() => setShowAPICallFlyout(true)}
|
||||
isLoading={lastAPICall == null}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.inputView.appendButtonLabel',
|
||||
{ defaultMessage: 'View API call' }
|
||||
)}
|
||||
</EuiButtonEmpty>
|
||||
),
|
||||
placeholder: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.inputView.placeholder',
|
||||
{ defaultMessage: 'Search' }
|
||||
),
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
<EuiSpacer size="m" />
|
||||
|
@ -419,7 +450,7 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
<EuiSpacer size="m" />
|
||||
<EuiLink href={docLinks.searchTemplates} target="_blank">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.improveResultsLink"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.improveResultsLink"
|
||||
defaultMessage="Improve these results"
|
||||
/>
|
||||
</EuiLink>
|
||||
|
@ -432,9 +463,6 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
</EuiFlexGroup>
|
||||
</SearchProvider>
|
||||
<DocumentFlyout />
|
||||
{/*
|
||||
Uncomment when view this API call needed
|
||||
|
||||
{showAPICallFlyout && lastAPICall && (
|
||||
<APICallFlyout
|
||||
onClose={() => setShowAPICallFlyout(false)}
|
||||
|
@ -442,7 +470,6 @@ export const SearchApplicationSearchPreview: React.FC = () => {
|
|||
searchApplicationName={searchApplicationName}
|
||||
/>
|
||||
)}
|
||||
*/}
|
||||
</DocumentProvider>
|
||||
</EnterpriseSearchApplicationsPageTemplate>
|
||||
);
|
||||
|
|
|
@ -28,7 +28,6 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { withSearch } from '@elastic/react-search-ui';
|
||||
import type {
|
||||
InputViewProps,
|
||||
PagingInfoViewProps,
|
||||
ResultViewProps,
|
||||
ResultsPerPageViewProps,
|
||||
|
@ -46,6 +45,9 @@ import { convertResultToFieldsAndIndex, ConvertedResult, FieldValue } from './co
|
|||
import { useSelectedDocument } from './document_context';
|
||||
import { FieldValueCell } from './field_value_cell';
|
||||
|
||||
interface InputProps {
|
||||
additionalInputProps: JSX.Element;
|
||||
}
|
||||
export const ResultsView: React.FC<ResultsViewProps> = ({ children }) => {
|
||||
return <EuiFlexGroup direction="column">{children}</EuiFlexGroup>;
|
||||
};
|
||||
|
@ -71,7 +73,7 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
{
|
||||
field: 'field',
|
||||
name: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.nameColumn',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.result.nameColumn',
|
||||
{ defaultMessage: 'Field' }
|
||||
),
|
||||
render: (field: string) => {
|
||||
|
@ -89,7 +91,7 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
{
|
||||
field: 'value',
|
||||
name: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.valueColumn',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.result.valueColumn',
|
||||
{ defaultMessage: 'Value' }
|
||||
),
|
||||
render: (value: FieldValue) => (
|
||||
|
@ -109,7 +111,7 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
<EuiFlexGroup justifyContent="spaceBetween">
|
||||
<code>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.id"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.result.id"
|
||||
defaultMessage="ID: {id}"
|
||||
values={{ id }}
|
||||
/>
|
||||
|
@ -118,7 +120,7 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
<EuiFlexGroup gutterSize="xs" alignItems="center">
|
||||
<code>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.fromIndex"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.result.fromIndex"
|
||||
defaultMessage="from"
|
||||
/>
|
||||
</code>
|
||||
|
@ -133,7 +135,7 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
<EuiTextColor color="subdued">
|
||||
<code>
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.moreFieldsButton"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.result.moreFieldsButton"
|
||||
defaultMessage="{count} {count, plural, one {More Field} other {More Fields}}"
|
||||
values={{ count: hiddenFields }}
|
||||
/>
|
||||
|
@ -146,35 +148,24 @@ export const ResultView: React.FC<ResultViewProps> = ({ result }) => {
|
|||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
export const InputView: React.FC<InputViewProps> = ({ getInputProps }) => {
|
||||
return (
|
||||
<EuiFlexGroup gutterSize="s">
|
||||
<EuiFieldSearch
|
||||
fullWidth
|
||||
placeholder={i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.placeholder',
|
||||
{ defaultMessage: 'Search' }
|
||||
)}
|
||||
{...getInputProps({})}
|
||||
isClearable
|
||||
aria-label={i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.label',
|
||||
{ defaultMessage: 'Search Input' }
|
||||
)}
|
||||
/>
|
||||
<EuiButton type="submit" color="primary" fill>
|
||||
Search
|
||||
</EuiButton>
|
||||
</EuiFlexGroup>
|
||||
);
|
||||
};
|
||||
|
||||
export const SearchBar: React.FC<InputProps> = ({ additionalInputProps }) => (
|
||||
<EuiFlexGroup gutterSize="s">
|
||||
<EuiFieldSearch fullWidth {...additionalInputProps} />
|
||||
<EuiButton type="submit" color="primary" fill>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.inputView.searchLabel',
|
||||
{
|
||||
defaultMessage: 'Search',
|
||||
}
|
||||
)}
|
||||
</EuiButton>
|
||||
</EuiFlexGroup>
|
||||
);
|
||||
export const PagingInfoView: React.FC<PagingInfoViewProps> = ({ start, end, totalResults }) => (
|
||||
<EuiText size="s">
|
||||
<FormattedHTMLMessage
|
||||
tagName="p"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.pagingInfo.text"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.pagingInfo.text"
|
||||
defaultMessage="Showing <strong>{start}-{end}</strong> of {totalResults}"
|
||||
values={{ end, start, totalResults }}
|
||||
/>
|
||||
|
@ -193,7 +184,7 @@ export const ResultsPerPageView: React.FC<ResultsPerPageViewProps> = ({
|
|||
<EuiTitle size="xxxs">
|
||||
<label htmlFor="results-per-page">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.label"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.resultsPerPage.label"
|
||||
defaultMessage="Show"
|
||||
/>
|
||||
</label>
|
||||
|
@ -203,7 +194,7 @@ export const ResultsPerPageView: React.FC<ResultsPerPageViewProps> = ({
|
|||
options={
|
||||
options?.map((option) => ({
|
||||
text: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.option.label',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.resultsPerPage.option.label',
|
||||
{
|
||||
defaultMessage: '{value} {value, plural, one {Result} other {Results}}',
|
||||
values: { value: option },
|
||||
|
@ -225,7 +216,7 @@ export const Sorting = withSearch<
|
|||
>(({ setSort, sortList }) => ({ setSort, sortList }))(({ sortableFields, sortList, setSort }) => {
|
||||
const [{ direction, field }] = !sortList?.length ? [{ direction: '', field: '' }] : sortList;
|
||||
const relevance = i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.relevanceLabel',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.sortingView.relevanceLabel',
|
||||
{ defaultMessage: 'Relevance' }
|
||||
);
|
||||
|
||||
|
@ -235,7 +226,7 @@ export const Sorting = withSearch<
|
|||
<EuiTitle size="xxxs">
|
||||
<label htmlFor="sorting-field">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.fieldLabel"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.sortingView.fieldLabel"
|
||||
defaultMessage="Sort By"
|
||||
/>
|
||||
</label>
|
||||
|
@ -261,7 +252,7 @@ export const Sorting = withSearch<
|
|||
<EuiTitle size="xxxs">
|
||||
<label htmlFor="sorting-direction">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.directionLabel"
|
||||
id="xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.sortingView.directionLabel"
|
||||
defaultMessage="Order By"
|
||||
/>
|
||||
</label>
|
||||
|
@ -280,14 +271,14 @@ export const Sorting = withSearch<
|
|||
options={[
|
||||
{
|
||||
text: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.ascLabel',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.sortingView.ascLabel',
|
||||
{ defaultMessage: 'Ascending' }
|
||||
),
|
||||
value: 'asc',
|
||||
},
|
||||
{
|
||||
text: i18n.translate(
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.descLabel',
|
||||
'xpack.enterpriseSearch.searchApplications.searchApplication.searchPreview.sortingView.descLabel',
|
||||
{ defaultMessage: 'Descending' }
|
||||
),
|
||||
value: 'desc',
|
||||
|
|
|
@ -11704,11 +11704,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.removeIndex.caption": "Retirer l'index {indexName}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.viewIndex.caption": "Afficher l'index {indexName}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.conflict.callout.title": "{totalConflictsHiddenByTypeFilters, number} {totalConflictsHiddenByTypeFilters, plural, one {conflit} many {conflits} other {conflits}} en plus ne sont pas affichés ici",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldCount": "{fieldCount} {fieldCount, plural, one {Champ} many {Champs} other {Champs}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.title": "Document : {id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.id": "ID : {id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.moreFieldsButton": "{count} {count, plural, one {autre champ} many {autres champs} other {autres champs}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.option.label": "{value} {value, plural, one {Résultat} many {Résultats} other {Résultats}}",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplication.successToast.title": "{searchApplicationName} a été supprimé",
|
||||
"xpack.enterpriseSearch.searchApplications.createSearchApplication.headerSubTitle": "Pour en savoir plus, explorez notre {docsLink} !",
|
||||
"xpack.enterpriseSearch.searchApplications.list.indicesFlyout.subTitle": "Afficher les index associés à {searchApplicationName}",
|
||||
|
@ -12920,32 +12915,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.label": "Filtrer par",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.searchPlaceholder": "Liste de filtres ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.onlyShowConflicts": "Afficher uniquement les conflits",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.requestTab": "Requête",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.responseTab": "Réponse",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.searchEndpointLink": "Point de terminaison de la recherche",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.title": "Appel de l'API",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.relevanceLabel": "Pertinence",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.buttonTitle": "Configuration",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connect.Api": "API",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connectTitle": "Connecter",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.Indices": "Index",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.contentTitle": "Contenu",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settings.delete": "Supprimer cette application",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settingsTitle": "Paramètres",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldLabel": "Champ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.valueLabel": "Valeur",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.improveResultsLink": "Améliorer ces résultats",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.label": "Entrée de la recherche",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.placeholder": "Recherche",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.pageChrome": "Aperçu de la recherche",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.fromIndex": "de",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.nameColumn": "Champ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.valueColumn": "Valeur",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.label": "Afficher",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.ascLabel": "Croissant",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.descLabel": "Décroissant",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.directionLabel": "Classer par",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.fieldLabel": "Trier par",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.confirmButton.title": "Oui, supprimer cette application de recherche",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.delete.description": "La suppression de votre application de recherche ne peut pas être annulée. Vos index ne seront pas affectés. ",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.title": "Supprimer définitivement cette application de recherche ?",
|
||||
|
|
|
@ -11703,11 +11703,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.removeIndex.caption": "インデックス{indexName}の削除",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.viewIndex.caption": "インデックス{indexName}を表示",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.conflict.callout.title": "ここに表示されている以外に、その他の{totalConflictsHiddenByTypeFilters, number}件の{totalConflictsHiddenByTypeFilters, plural, other {不一致}}があります",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldCount": "{fieldCount} {fieldCount, plural, other {フィールド}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.title": "ドキュメント:{id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.id": "ID: {id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.moreFieldsButton": "{count} {count, plural, other {その他のフィールド}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.option.label": "{value} {value, plural, other {結果}}",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplication.successToast.title": "{searchApplicationName}が削除されました。",
|
||||
"xpack.enterpriseSearch.searchApplications.createSearchApplication.headerSubTitle": "詳細については、{docsLink}を探索してください。",
|
||||
"xpack.enterpriseSearch.searchApplications.list.indicesFlyout.subTitle": "{searchApplicationName}に関連付けられたインデックスを表示",
|
||||
|
@ -12919,32 +12914,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.label": "フィルタリング条件",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.searchPlaceholder": "リストをフィルター ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.onlyShowConflicts": "不一致のみを表示",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.requestTab": "リクエスト",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.responseTab": "応答",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.searchEndpointLink": "エンドポイントを検索",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.title": "API呼び出し",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.relevanceLabel": "<b>関連性</b>",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.buttonTitle": "構成",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connect.Api": "API",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connectTitle": "接続",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.Indices": "インデックス",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.contentTitle": "コンテンツ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settings.delete": "このアプリを削除",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settingsTitle": "設定",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldLabel": "フィールド",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.valueLabel": "値",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.improveResultsLink": "これらの結果を改善",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.label": "検索インプット",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.placeholder": "検索",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.pageChrome": "検索プレビュー",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.fromIndex": "開始",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.nameColumn": "フィールド",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.valueColumn": "値",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.label": "表示",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.ascLabel": "昇順",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.descLabel": "降順",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.directionLabel": "並び順",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.fieldLabel": "並べ替え基準",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.confirmButton.title": "はい。この検索アプリケーションを削除します",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.delete.description": "検索アプリケーショを削除すると、元に戻せません。インデックスには影響しません。",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.title": "この検索アプリケーションを完全に削除しますか?",
|
||||
|
|
|
@ -11703,11 +11703,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.removeIndex.caption": "移除索引 {indexName}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.actions.viewIndex.caption": "查看索引 {indexName}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.conflict.callout.title": "有另外 {totalConflictsHiddenByTypeFilters, number} 个{totalConflictsHiddenByTypeFilters, plural, other {冲突}}未在此处显示",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldCount": "{fieldCount} {fieldCount, plural, other {字段}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.title": "文档:{id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.id": "ID:{id}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.moreFieldsButton": "{count} {count, plural, other {更多字段}}",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.option.label": "{value} {value, plural, other {结果}}",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplication.successToast.title": "{searchApplicationName} 已删除",
|
||||
"xpack.enterpriseSearch.searchApplications.createSearchApplication.headerSubTitle": "请浏览我们的 {docsLink} 了解详情!",
|
||||
"xpack.enterpriseSearch.searchApplications.list.indicesFlyout.subTitle": "查看与 {searchApplicationName} 关联的索引",
|
||||
|
@ -12919,32 +12914,6 @@
|
|||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.label": "筛选依据",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.filters.searchPlaceholder": "筛选列表 ",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.onlyShowConflicts": "仅显示冲突",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.requestTab": "请求",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.responseTab": "响应",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.searchEndpointLink": "搜索终端",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.apiCallFlyout.title": "API 调用",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.relevanceLabel": "相关性",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.buttonTitle": "配置",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connect.Api": "API",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.connectTitle": "连接",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.content.Indices": "索引",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.contentTitle": "内容",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settings.delete": "删除此应用",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.configuration.settingsTitle": "设置",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.fieldLabel": "字段",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.documentFlyout.valueLabel": "值",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.improveResultsLink": "改进这些结果",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.label": "搜索输入",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.inputView.placeholder": "搜索",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.pageChrome": "搜索预览",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.fromIndex": "来自",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.nameColumn": "字段",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.result.valueColumn": "值",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.resultsPerPage.label": "显示",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.ascLabel": "升序",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.descLabel": "降序",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.directionLabel": "排序依据",
|
||||
"xpack.enterpriseSearch.searchApplications.searchApplication.searchPreivew.sortingView.fieldLabel": "排序依据",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.confirmButton.title": "是,删除此搜索应用程序",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.delete.description": "删除搜索应用程序是不可逆操作。您的索引不会受到影响。",
|
||||
"xpack.enterpriseSearch.searchApplications.list.deleteSearchApplicationModal.title": "永久删除此搜索应用程序?",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue