Skip to content

Commit

Permalink
[7.8] Fixes #69639: Ignore url.url fields above 2048 characters (#69863
Browse files Browse the repository at this point in the history
…) (#69931)

* Fixes #69639: Ignore url.url fields above 2048 characters (#69863)

* Fix types in 7.8

* Fix core docs
  • Loading branch information
rudolf authored Jun 26, 2020
1 parent 2ce6621 commit f9acad9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
fields?: {
[subfield: string]: {
type: string;
ignore_above?: number;
};
};
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface SavedObjectsCoreFieldMapping
| Property | Type | Description |
| --- | --- | --- |
| [enabled](./kibana-plugin-core-server.savedobjectscorefieldmapping.enabled.md) | <code>boolean</code> | |
| [fields](./kibana-plugin-core-server.savedobjectscorefieldmapping.fields.md) | <code>{</code><br/><code> [subfield: string]: {</code><br/><code> type: string;</code><br/><code> };</code><br/><code> }</code> | |
| [fields](./kibana-plugin-core-server.savedobjectscorefieldmapping.fields.md) | <code>{</code><br/><code> [subfield: string]: {</code><br/><code> type: string;</code><br/><code> ignore_above?: number;</code><br/><code> };</code><br/><code> }</code> | |
| [index](./kibana-plugin-core-server.savedobjectscorefieldmapping.index.md) | <code>boolean</code> | |
| [null\_value](./kibana-plugin-core-server.savedobjectscorefieldmapping.null_value.md) | <code>number &#124; boolean &#124; string</code> | |
| [type](./kibana-plugin-core-server.savedobjectscorefieldmapping.type.md) | <code>string</code> | |
Expand Down
1 change: 1 addition & 0 deletions src/core/server/saved_objects/mappings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export interface SavedObjectsCoreFieldMapping {
fields?: {
[subfield: string]: {
type: string;
ignore_above?: number;
};
};
}
Expand Down
1 change: 1 addition & 0 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,7 @@ export interface SavedObjectsCoreFieldMapping {
fields?: {
[subfield: string]: {
type: string;
ignore_above?: number;
};
};
// (undocumented)
Expand Down
1 change: 1 addition & 0 deletions src/plugins/share/server/saved_objects/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const url: SavedObjectsType = {
fields: {
keyword: {
type: 'keyword',
ignore_above: 2048,
},
},
},
Expand Down

0 comments on commit f9acad9

Please sign in to comment.