[Enterprise Search] Add configurable field (#159791)

## Summary

Add missing configurable field `use_text_extraction_service` to SPO
native connector.
This commit is contained in:
Navarone Feekery 2023-06-15 14:56:13 +02:00 committed by GitHub
parent c37be07479
commit f20705528c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -937,6 +937,33 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
validations: [],
value: '',
},
use_text_extraction_service: {
default_value: false,
depends_on: [],
display: DisplayType.TOGGLE,
label: i18n.translate(
'xpack.enterpriseSearch.nativeConnectors.sharepoint_online.configuration.textExtractionServiceLabel',
{
defaultMessage: 'Use text extraction service',
}
),
options: [],
order: 6,
required: true,
sensitive: false,
tooltip: i18n.translate(
'xpack.enterpriseSearch.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,
ui_restrictions: ['advanced'],
validations: [],
value: false,
},
},
features: {
[FeatureName.SYNC_RULES]: {