Add features mapping for connectors (#144748)

## Summary

Part of https://github.com/elastic/enterprise-search-team/issues/3254

this augments the mappings for `.elastic-connectors` to include the
`features` field

#### Related PRs
- https://github.com/elastic/ent-search/pull/7027
- https://github.com/elastic/connectors-ruby/pull/408
This commit is contained in:
Sean Story 2022-11-08 11:12:54 -06:00 committed by GitHub
parent 72cddca25a
commit 03166d29b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -40,6 +40,12 @@ describe('Setup Indices', () => {
},
description: { type: 'text' },
error: { type: 'keyword' },
features: {
properties: {
filtering_advanced_config: { type: 'boolean' },
filtering_rules: { type: 'boolean' },
},
},
filtering: {
properties: {
active: {

View file

@ -32,6 +32,12 @@ const connectorMappingsProperties: Record<string, MappingProperty> = {
configuration: { type: 'object' },
description: { type: 'text' },
error: { type: 'keyword' },
features: {
properties: {
filtering_advanced_config: { type: 'boolean' },
filtering_rules: { type: 'boolean' },
},
},
filtering: {
properties: {
active: {