Skip to content

Commit

Permalink
Remove unique filter from repo indexer analyzer. (#7878)
Browse files Browse the repository at this point in the history
* Remove unique filter from repo indexer analyzer.

* Bump repoIndexerLatestVersion to 4

* Corrrect fmt

* make vendor to remove unique dependency
  • Loading branch information
guillep2k authored and lunny committed Aug 15, 2019
1 parent 85202d4 commit 5661773
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 57 deletions.
5 changes: 2 additions & 3 deletions modules/indexer/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -23,7 +22,7 @@ const (
repoIndexerAnalyzer = "repoIndexerAnalyzer"
repoIndexerDocType = "repoIndexerDocType"

repoIndexerLatestVersion = 3
repoIndexerLatestVersion = 4
)

// repoIndexer (thread-safe) index for repository contents
Expand Down Expand Up @@ -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
}
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ github.com/blevesearch/bleve
github.com/blevesearch/bleve/analysis/analyzer/custom
github.com/blevesearch/bleve/analysis/token/lowercase
github.com/blevesearch/bleve/analysis/token/unicodenorm
github.com/blevesearch/bleve/analysis/token/unique
github.com/blevesearch/bleve/analysis/tokenizer/unicode
github.com/blevesearch/bleve/index/upsidedown
github.com/blevesearch/bleve/mapping
Expand Down

0 comments on commit 5661773

Please sign in to comment.