Skip to content

Commit a7177f1

Browse files
wxiaoguangGiteaBot
andcommitted
Fix incorrect code search indexer options (go-gitea#33992)
Fix go-gitea#33798 Co-authored-by: Giteabot <teabot@gitea.io>
1 parent f514b26 commit a7177f1

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
@@ -28,7 +28,6 @@ import (
2828
"github.com/blevesearch/bleve/v2"
2929
analyzer_custom "github.com/blevesearch/bleve/v2/analysis/analyzer/custom"
3030
analyzer_keyword "github.com/blevesearch/bleve/v2/analysis/analyzer/keyword"
31-
"github.com/blevesearch/bleve/v2/analysis/token/camelcase"
3231
"github.com/blevesearch/bleve/v2/analysis/token/lowercase"
3332
"github.com/blevesearch/bleve/v2/analysis/token/unicodenorm"
3433
"github.com/blevesearch/bleve/v2/analysis/tokenizer/letter"
@@ -70,7 +69,7 @@ const (
7069
filenameIndexerAnalyzer = "filenameIndexerAnalyzer"
7170
filenameIndexerTokenizer = "filenameIndexerTokenizer"
7271
repoIndexerDocType = "repoIndexerDocType"
73-
repoIndexerLatestVersion = 8
72+
repoIndexerLatestVersion = 9
7473
)
7574

7675
// generateBleveIndexMapping generates a bleve index mapping for the repo indexer
@@ -107,7 +106,7 @@ func generateBleveIndexMapping() (mapping.IndexMapping, error) {
107106
"type": analyzer_custom.Name,
108107
"char_filters": []string{},
109108
"tokenizer": letter.Name,
110-
"token_filters": []string{unicodeNormalizeName, camelcase.Name, lowercase.Name},
109+
"token_filters": []string{unicodeNormalizeName, lowercase.Name},
111110
}); err != nil {
112111
return nil, err
113112
}

0 commit comments

Comments
 (0)