From b494e06804dca860138da843e0c44912f692a280 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 5 Nov 2020 19:47:24 +0100 Subject: query: english specialized indexing --- cache/repo_cache_bug.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go index 19453734..d57e1bce 100644 --- a/cache/repo_cache_bug.go +++ b/cache/repo_cache_bug.go @@ -112,6 +112,8 @@ func (c *RepoCache) createBleveIndex() error { _ = os.RemoveAll(blevePath) mapping := bleve.NewIndexMapping() + mapping.DefaultAnalyzer = "en" + dir := searchCacheDirPath(c.repo) bleveIndex, err := bleve.New(dir, mapping) -- cgit