Skip to content

Commit 8745129

Browse files
wxiaoguangGiteaBot
andauthored
Fix incorrect code search indexer options (#33992)
Fix #33798 Co-authored-by: Giteabot <[email protected]>
1 parent b1e326d commit 8745129

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/indexer/code/bleve/bleve.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"github.com/blevesearch/bleve/v2"
3131
analyzer_custom "github.com/blevesearch/bleve/v2/analysis/analyzer/custom"
3232
analyzer_keyword "github.com/blevesearch/bleve/v2/analysis/analyzer/keyword"
33-
"github.com/blevesearch/bleve/v2/analysis/token/camelcase"
3433
"github.com/blevesearch/bleve/v2/analysis/token/lowercase"
3534
"github.com/blevesearch/bleve/v2/analysis/token/unicodenorm"
3635
"github.com/blevesearch/bleve/v2/analysis/tokenizer/letter"
@@ -72,7 +71,7 @@ const (
7271
filenameIndexerAnalyzer = "filenameIndexerAnalyzer"
7372
filenameIndexerTokenizer = "filenameIndexerTokenizer"
7473
repoIndexerDocType = "repoIndexerDocType"
75-
repoIndexerLatestVersion = 8
74+
repoIndexerLatestVersion = 9
7675
)
7776

7877
// generateBleveIndexMapping generates a bleve index mapping for the repo indexer
@@ -109,7 +108,7 @@ func generateBleveIndexMapping() (mapping.IndexMapping, error) {
109108
"type": analyzer_custom.Name,
110109
"char_filters": []string{},
111110
"tokenizer": letter.Name,
112-
"token_filters": []string{unicodeNormalizeName, camelcase.Name, lowercase.Name},
111+
"token_filters": []string{unicodeNormalizeName, lowercase.Name},
113112
}); err != nil {
114113
return nil, err
115114
}

0 commit comments

Comments
 (0)