diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-08-15 12:38:55 -0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-15 23:38:55 +0800 |
commit | 566177301894f4c56393948c2ca75ad3b717a80e (patch) | |
tree | e718b7f0a6b65136308d3349af0d060df7a1b8fd /modules | |
parent | 85202d4784758573f80f93dbbda97a444e7ece99 (diff) | |
download | gitea-566177301894f4c56393948c2ca75ad3b717a80e.tar.gz gitea-566177301894f4c56393948c2ca75ad3b717a80e.zip |
Remove unique filter from repo indexer analyzer. (#7878)
* Remove unique filter from repo indexer analyzer.
* Bump repoIndexerLatestVersion to 4
* Corrrect fmt
* make vendor to remove unique dependency
Diffstat (limited to 'modules')
-rw-r--r-- | modules/indexer/repo.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/indexer/repo.go b/modules/indexer/repo.go index 645a6fc88b..91ed173aa7 100644 --- a/modules/indexer/repo.go +++ b/modules/indexer/repo.go @@ -13,7 +13,6 @@ import ( "github.com/blevesearch/bleve" "github.com/blevesearch/bleve/analysis/analyzer/custom" "github.com/blevesearch/bleve/analysis/token/lowercase" - "github.com/blevesearch/bleve/analysis/token/unique" "github.com/blevesearch/bleve/analysis/tokenizer/unicode" "github.com/blevesearch/bleve/search/query" "github.com/ethantkoenig/rupture" @@ -23,7 +22,7 @@ const ( repoIndexerAnalyzer = "repoIndexerAnalyzer" repoIndexerDocType = "repoIndexerDocType" - repoIndexerLatestVersion = 3 + repoIndexerLatestVersion = 4 ) // repoIndexer (thread-safe) index for repository contents @@ -110,7 +109,7 @@ func createRepoIndexer(path string, latestVersion int) error { "type": custom.Name, "char_filters": []string{}, "tokenizer": unicode.Name, - "token_filters": []string{unicodeNormalizeName, lowercase.Name, unique.Name}, + "token_filters": []string{unicodeNormalizeName, lowercase.Name}, }); err != nil { return err } |