forked from forgejo/forgejo
fix: use Base36 for all code indexers (#12830)
This commit is contained in:
parent
53b656582e
commit
6c4e9623cc
2 changed files with 5 additions and 6 deletions
|
@ -37,11 +37,6 @@ import (
|
|||
const unicodeNormalizeName = "unicodeNormalize"
|
||||
const maxBatchSize = 16
|
||||
|
||||
// indexerID a bleve-compatible unique identifier for an integer id
|
||||
func indexerID(id int64) string {
|
||||
return strconv.FormatInt(id, 36)
|
||||
}
|
||||
|
||||
// numericEqualityQuery a numeric equality query for the given value and field
|
||||
func numericEqualityQuery(value int64, field string) *query.NumericRangeQuery {
|
||||
f := float64(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue