Skip to content

Commit

Permalink
Use ignore_all to protect against large fields. Closes 10up#772
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Mar 23, 2017
1 parent 46f9c26 commit bcaf8d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions includes/mappings/5-0.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
),
'raw' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
),
),
Expand All @@ -87,14 +88,17 @@
'fields' => array(
'sortable' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
'raw' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
),
),
'raw' => array( /* Left for backwards compat */
'type' => 'keyword',
'ignore_above' => 10922,
),
'long' => array(
'type' => 'long',
Expand Down Expand Up @@ -222,9 +226,11 @@
),
'raw' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
'sortable' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
),
),
Expand All @@ -245,6 +251,7 @@
),
'raw' => array(
'type' => 'keyword',
'ignore_above' => 10922,
),
),
),
Expand Down

0 comments on commit bcaf8d7

Please sign in to comment.