Skip to content

Commit

Permalink
Merge pull request #725 from afoucret/fix-es5-default-field-limit
Browse files Browse the repository at this point in the history
Increase ES default max field per index limit.
  • Loading branch information
afoucret authored Feb 5, 2018
2 parents 6959e37 + cb70b70 commit 122cba4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/module-elasticsuite-core/Index/IndexSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class IndexSettings implements IndexSettingsInterface
*/
const CODEC = 'best_compression';

/**
* @var integer
*/
const TOTAL_FIELD_LIMIT = 20000;

/**
* @var \Smile\ElasticsuiteCore\Helper\IndexSettings
*/
Expand Down Expand Up @@ -133,6 +138,7 @@ public function getCreateIndexSettings()
'translog.durability' => self::FULL_REINDEX_TRANSLOG_DURABILITY,
'codec' => self::CODEC,
'max_result_window' => $this->helper->getMaxResultWindow(),
'mapping.total_fields.limit' => self::TOTAL_FIELD_LIMIT,
];

return $settings;
Expand Down

0 comments on commit 122cba4

Please sign in to comment.