diff options
author | Jui-Nan Lin <jnlinn@gmail.com> | 2021-01-27 18:00:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 12:00:35 +0200 |
commit | c10503afeccd5172ace7613094dd5fe1e0770c55 (patch) | |
tree | 5a39cbf125f38a3bc75eb77c689b03ed13efa44c /modules/indexer/code/indexer_test.go | |
parent | b2c20b68a08e23bc952402a553d59a4613188bd0 (diff) | |
download | gitea-c10503afeccd5172ace7613094dd5fe1e0770c55.tar.gz gitea-c10503afeccd5172ace7613094dd5fe1e0770c55.zip |
[Feature] add precise search type for Elastic Search (#12869)
* 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>
Diffstat (limited to 'modules/indexer/code/indexer_test.go')
-rw-r--r-- | modules/indexer/code/indexer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go index 0b4851a48a..8fcb7a0e8a 100644 --- a/modules/indexer/code/indexer_test.go +++ b/modules/indexer/code/indexer_test.go @@ -64,7 +64,7 @@ func testIndexer(name string, t *testing.T, indexer Indexer) { for _, kw := range keywords { t.Run(kw.Keyword, func(t *testing.T) { - total, res, langs, err := indexer.Search(kw.RepoIDs, "", kw.Keyword, 1, 10) + total, res, langs, err := indexer.Search(kw.RepoIDs, "", kw.Keyword, 1, 10, false) assert.NoError(t, err) assert.EqualValues(t, len(kw.IDs), total) assert.EqualValues(t, kw.Langs, len(langs)) |