summaryrefslogtreecommitdiffstats
path: root/routers/repo/search.go
Commit message (Collapse)AuthorAgeFilesLines
* [refactor] replace int with httpStatusCodes (#15282)65432021-04-051-1/+2
| | | | | | | | | | | * replace "200" (int) with "http.StatusOK" (const) * ctx.Error & ctx.HTML * ctx.JSON Part1 * ctx.JSON Part2 * ctx.JSON Part3
* Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL ↵zeripath2021-02-191-2/+1
| | | | | | | | (#12999) Also removes some unnecessary uses of fmt.Sprintf and adds documentation strings Signed-off-by: Andrew Thornton <art27@cantab.net>
* [Feature] add precise search type for Elastic Search (#12869)Jui-Nan Lin2021-01-271-1/+5
| | | | | | | | * feat: add type query parameters for specifying precise search * feat: add select dropdown in search box Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add detected file language to code search (#10256)Lauris BH2020-02-201-3/+7
| | | | | | | 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
* Refactor code indexer (#9313)Lunny Xiao2019-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | * Refactor code indexer * fix test * fix test * refactor code indexer * fix import * improve code * fix typo * fix test and make code clean * fix lint
* Unifies pagination template usage (#6531) (#6533)Mario Lubenka2019-04-201-4/+5
|
* Global code search support (#3664)Lunny Xiao2018-03-161-1/+2
| | | | | | | | | | | | * add global code search on explore * fix bug when no anyone public repos * change the icon * fix typo and add UnitTypeCode check for login non-admin user * fix ui description when no match
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-1/+1
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Fix go-get, src and raw urls to new scheme (#2978)Lauris BH2017-11-271-1/+1
|
* Code/repo search (#2582)Ethan Koenig2017-10-271-0/+46
Indexed search of repository contents (for default branch only)