aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-11-05 19:47:24 +0100
committerMike Goldin <mike.goldin@protonmail.ch>2020-11-17 08:09:52 -0500
commitb494e06804dca860138da843e0c44912f692a280 (patch)
treecc74822ac098d6e30c6d0f9932f40e1cb02676e6
parent9bea84e232ea4ae281a7b67c9e27f3a2b6215045 (diff)
downloadgit-bug-b494e06804dca860138da843e0c44912f692a280.tar.gz
query: english specialized indexing
-rw-r--r--cache/repo_cache_bug.go2
1 files changed, 2 insertions, 0 deletions
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)