summaryrefslogtreecommitdiffstats
path: root/modules/indexer/code/indexer.go
Commit message (Collapse)AuthorAgeFilesLines
* Log the indexer path on failure (#11172)zeripath2020-04-221-1/+1
| | | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Handle panic in indexer initialisation better (#10534)zeripath2020-02-281-0/+11
| | | | | * Handle panic in indexer initialisation better * as per @guillep2k
* Add detected file language to code search (#10256)Lauris BH2020-02-201-6/+18
| | | | | | | Move langauge detection to separate module to be more reusable Add option to disable vendored file exclusion from file search Allways show all language stats for search
* fix datarace on issue indexer queue (#9490)Lunny Xiao2019-12-251-0/+2
|
* Wrap the code indexer (#9476)zeripath2019-12-241-11/+38
| | | | | | | | | | | | | | | | | | | | * Wrap the code indexer In order to prevent a data race in the code indexer it must be wrapped with a holder otherwise it is possible to Search/Index on an incompletely initialised indexer, and search will fail with a nil pointer until the repository indexer is initialised. Further a completely initialised repository indexer should not be closed until Termination otherwise actions in Hammer/Shutdown phases could block or be lost. Finally, there is a complex dance of shutdown etiquette should the index initialisation fail. This PR restores that. * Always return err if closed whilst waiting Co-authored-by: techknowlogick <matti@mdranta.net>
* Refactor code indexer (#9313)Lunny Xiao2019-12-231-53/+54
| | | | | | | | | | | | | | | | | | | | * Refactor code indexer * fix test * fix test * refactor code indexer * fix import * improve code * fix typo * fix test and make code clean * fix lint
* Move modules/indexer to modules/indexer/code (#9301)Lunny Xiao2019-12-101-0/+76