Commit e56e12c3 authored by Dmitry Gruzd's avatar Dmitry Gruzd Committed by Dylan Griffith

Fix ES illegal_argument_exception

parent 2eb346c7
---
title: Fix Elasticsearch illegal_argument_exception when searching for large files
merge_request: 33176
author:
type: fixed
......@@ -16,6 +16,9 @@ module Elastic
index: {
number_of_shards: Elastic::AsJSON.new { Gitlab::CurrentSettings.elasticsearch_shards },
number_of_replicas: Elastic::AsJSON.new { Gitlab::CurrentSettings.elasticsearch_replicas },
highlight: {
max_analyzed_offset: 1.megabyte
},
codec: 'best_compression',
analysis: {
analyzer: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment