From b494e06804dca860138da843e0c44912f692a280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 5 Nov 2020 19:47:24 +0100 Subject: [PATCH] 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 194537348f9733c647594bdb55cbb4e340b32aa4..d57e1bce3fc96469d9ca352c9ae0e2ffabac70fe 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)