gitea/modules/indexer/code
dark-angel 5c0fc90872
fix: Elasticsearch: Request Entity Too Large ()
Fix for gitea putting everything into one request without batching and
sending it to Elasticsearch for indexing as issued in 

This issue occured in large repositories while Gitea tries to 
index the code using ElasticSearch.

I've applied necessary changes that takes batch length from below config
(app.ini)
```
[queue.code_indexer]
BATCH_LENGTH=<length_int>
```
and batches all requests to Elasticsearch in chunks as configured in the
above config
..
bleve Preserve BOM in web editor ()
elasticsearch fix: Elasticsearch: Request Entity Too Large ()
internal Refactor indexer ()
git.go Abstract hash function usage ()
indexer.go Penultimate round of `db.DefaultContext` refactor ()
indexer_test.go Replace assert.Fail with assert.FailNow ()
search.go Add option to disable ambiguous unicode characters detection ()