diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-03-25 00:18:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-24 17:18:21 +0100 |
commit | 8745129c9c96397f49ee309172a826a678b25c21 (patch) | |
tree | 2b4cfef54789de700753b88cc31aba54976be2b5 | |
parent | b1e326d09e86037435e3184b655a22e2d8841bef (diff) | |
download | gitea-8745129c9c96397f49ee309172a826a678b25c21.tar.gz gitea-8745129c9c96397f49ee309172a826a678b25c21.zip |
Fix incorrect code search indexer options (#33992)
Fix #33798
Co-authored-by: Giteabot <teabot@gitea.io>
-rw-r--r-- | modules/indexer/code/bleve/bleve.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/indexer/code/bleve/bleve.go b/modules/indexer/code/bleve/bleve.go index 130ee78a4b..7037e47c93 100644 --- a/modules/indexer/code/bleve/bleve.go +++ b/modules/indexer/code/bleve/bleve.go @@ -30,7 +30,6 @@ import ( "github.com/blevesearch/bleve/v2" analyzer_custom "github.com/blevesearch/bleve/v2/analysis/analyzer/custom" analyzer_keyword "github.com/blevesearch/bleve/v2/analysis/analyzer/keyword" - "github.com/blevesearch/bleve/v2/analysis/token/camelcase" "github.com/blevesearch/bleve/v2/analysis/token/lowercase" "github.com/blevesearch/bleve/v2/analysis/token/unicodenorm" "github.com/blevesearch/bleve/v2/analysis/tokenizer/letter" @@ -72,7 +71,7 @@ const ( filenameIndexerAnalyzer = "filenameIndexerAnalyzer" filenameIndexerTokenizer = "filenameIndexerTokenizer" repoIndexerDocType = "repoIndexerDocType" - repoIndexerLatestVersion = 8 + repoIndexerLatestVersion = 9 ) // generateBleveIndexMapping generates a bleve index mapping for the repo indexer @@ -109,7 +108,7 @@ func generateBleveIndexMapping() (mapping.IndexMapping, error) { "type": analyzer_custom.Name, "char_filters": []string{}, "tokenizer": letter.Name, - "token_filters": []string{unicodeNormalizeName, camelcase.Name, lowercase.Name}, + "token_filters": []string{unicodeNormalizeName, lowercase.Name}, }); err != nil { return nil, err } |