mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Search] Add extraction service RCF to native connectors (#167527)
## Summary Add the `use_text_extraction_service` rich configurable field to some native connectors. Native connectors will not have access to the feature, but the field is required in case the user converts their native connector to a self-managed connector.
This commit is contained in:
parent
343c04c617
commit
8353a7e160
1 changed files with 93 additions and 14 deletions
|
@ -50,6 +50,22 @@ const MAX_CONCURRENT_DOWNLOADS_LABEL = i18n.translate(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const USE_TEXT_EXTRACTION_SERVICE_LABEL = i18n.translate(
|
||||||
|
'searchConnectors.nativeConnectors.textExtractionService.label',
|
||||||
|
{
|
||||||
|
defaultMessage: 'Use text extraction service',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
const USE_TEXT_EXTRACTION_SERVICE_TOOLTIP = i18n.translate(
|
||||||
|
'searchConnectors.nativeConnectors.textExtractionService.tooltip',
|
||||||
|
{
|
||||||
|
defaultMessage:
|
||||||
|
'Requires a separate deployment of the Elastic Data Extraction Service. ' +
|
||||||
|
'Also requires that pipeline settings disable text extraction.',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const DATABASE_LABEL = i18n.translate('searchConnectors.nativeConnectors.databaseLabel', {
|
const DATABASE_LABEL = i18n.translate('searchConnectors.nativeConnectors.databaseLabel', {
|
||||||
defaultMessage: 'Database',
|
defaultMessage: 'Database',
|
||||||
});
|
});
|
||||||
|
@ -157,6 +173,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
],
|
],
|
||||||
value: 100,
|
value: 100,
|
||||||
},
|
},
|
||||||
|
use_text_extraction_service: {
|
||||||
|
default_value: false,
|
||||||
|
depends_on: [],
|
||||||
|
display: DisplayType.TOGGLE,
|
||||||
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
|
options: [],
|
||||||
|
order: 6,
|
||||||
|
required: true,
|
||||||
|
sensitive: false,
|
||||||
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
|
type: FieldType.BOOLEAN,
|
||||||
|
ui_restrictions: ['advanced'],
|
||||||
|
validations: [],
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
[FeatureName.SYNC_RULES]: {
|
[FeatureName.SYNC_RULES]: {
|
||||||
|
@ -398,6 +429,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
],
|
],
|
||||||
value: 50,
|
value: 50,
|
||||||
},
|
},
|
||||||
|
use_text_extraction_service: {
|
||||||
|
default_value: false,
|
||||||
|
depends_on: [],
|
||||||
|
display: DisplayType.TOGGLE,
|
||||||
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
|
options: [],
|
||||||
|
order: 12,
|
||||||
|
required: true,
|
||||||
|
sensitive: false,
|
||||||
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
|
type: FieldType.BOOLEAN,
|
||||||
|
ui_restrictions: ['advanced'],
|
||||||
|
validations: [],
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
[FeatureName.SYNC_RULES]: {
|
[FeatureName.SYNC_RULES]: {
|
||||||
|
@ -503,6 +549,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
validations: [],
|
validations: [],
|
||||||
value: 100,
|
value: 100,
|
||||||
},
|
},
|
||||||
|
use_text_extraction_service: {
|
||||||
|
default_value: false,
|
||||||
|
depends_on: [],
|
||||||
|
display: DisplayType.TOGGLE,
|
||||||
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
|
options: [],
|
||||||
|
order: 7,
|
||||||
|
required: true,
|
||||||
|
sensitive: false,
|
||||||
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
|
type: FieldType.BOOLEAN,
|
||||||
|
ui_restrictions: ['advanced'],
|
||||||
|
validations: [],
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
[FeatureName.SYNC_RULES]: {
|
[FeatureName.SYNC_RULES]: {
|
||||||
|
@ -741,6 +802,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
],
|
],
|
||||||
value: 100,
|
value: 100,
|
||||||
},
|
},
|
||||||
|
use_text_extraction_service: {
|
||||||
|
default_value: false,
|
||||||
|
depends_on: [],
|
||||||
|
display: DisplayType.TOGGLE,
|
||||||
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
|
options: [],
|
||||||
|
order: 12,
|
||||||
|
required: true,
|
||||||
|
sensitive: false,
|
||||||
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
|
type: FieldType.BOOLEAN,
|
||||||
|
ui_restrictions: ['advanced'],
|
||||||
|
validations: [],
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
[FeatureName.SYNC_RULES]: {
|
[FeatureName.SYNC_RULES]: {
|
||||||
|
@ -1655,6 +1731,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
validations: [],
|
validations: [],
|
||||||
value: 10,
|
value: 10,
|
||||||
},
|
},
|
||||||
|
use_text_extraction_service: {
|
||||||
|
default_value: false,
|
||||||
|
depends_on: [],
|
||||||
|
display: DisplayType.TOGGLE,
|
||||||
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
|
options: [],
|
||||||
|
order: 7,
|
||||||
|
required: true,
|
||||||
|
sensitive: false,
|
||||||
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
|
type: FieldType.BOOLEAN,
|
||||||
|
ui_restrictions: ['advanced'],
|
||||||
|
validations: [],
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
[FeatureName.SYNC_RULES]: {
|
[FeatureName.SYNC_RULES]: {
|
||||||
|
@ -1780,24 +1871,12 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
||||||
default_value: false,
|
default_value: false,
|
||||||
depends_on: [],
|
depends_on: [],
|
||||||
display: DisplayType.TOGGLE,
|
display: DisplayType.TOGGLE,
|
||||||
label: i18n.translate(
|
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.textExtractionServiceLabel',
|
|
||||||
{
|
|
||||||
defaultMessage: 'Use text extraction service',
|
|
||||||
}
|
|
||||||
),
|
|
||||||
options: [],
|
options: [],
|
||||||
order: 6,
|
order: 6,
|
||||||
required: true,
|
required: true,
|
||||||
sensitive: false,
|
sensitive: false,
|
||||||
tooltip: i18n.translate(
|
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.textExtractionServiceTooltip',
|
|
||||||
{
|
|
||||||
defaultMessage:
|
|
||||||
'Requires a separate deployment of the Elastic Data Extraction Service. ' +
|
|
||||||
'Also requires that pipeline settings disable text extraction.',
|
|
||||||
}
|
|
||||||
),
|
|
||||||
type: FieldType.BOOLEAN,
|
type: FieldType.BOOLEAN,
|
||||||
ui_restrictions: ['advanced'],
|
ui_restrictions: ['advanced'],
|
||||||
validations: [],
|
validations: [],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue