githaven-fork/modules/indexer/code
zeripath ae7e6cd474
Reduce calls to git cat-file -s (#14682)
* Reduce calls to git cat-file -s

There are multiple places where there are repeated calls to git cat-file
-s due to the blobs not being created with their size.

Through judicious use of git ls-tree -l and slight adjustments to the
indexer code we can avoid a lot of these calls.

* simplify by always expecting the long format

* Also always set the sized field and tell the indexer the update is sized
2021-02-17 22:32:25 +01:00
..
bleve_test.go Support elastic search for code search (#10273) 2020-08-30 19:08:01 +03:00
bleve.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
elastic_search_test.go Fix bug on elastic search (#12811) 2020-09-12 20:31:52 +08:00
elastic_search.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
git.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
indexer_test.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
indexer.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
search.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
wrapped.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00