mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-02 23:08:32 +00:00
Upgrade bleve from v2.0.6 to v2.3.0 (#18132)
This commit is contained in:
9
vendor/github.com/blevesearch/bleve/v2/query.go
generated
vendored
9
vendor/github.com/blevesearch/bleve/v2/query.go
generated
vendored
@@ -216,3 +216,12 @@ func NewGeoBoundingBoxQuery(topLeftLon, topLeftLat, bottomRightLon, bottomRightL
|
||||
func NewGeoDistanceQuery(lon, lat float64, distance string) *query.GeoDistanceQuery {
|
||||
return query.NewGeoDistanceQuery(lon, lat, distance)
|
||||
}
|
||||
|
||||
// NewIPRangeQuery creates a new Query for matching IP addresses.
|
||||
// If the argument is in CIDR format, then the query will match all
|
||||
// IP addresses in the network specified. If the argument is an IP address,
|
||||
// then the query will return documents which contain that IP.
|
||||
// Both ipv4 and ipv6 are supported.
|
||||
func NewIPRangeQuery(cidr string) *query.IPRangeQuery {
|
||||
return query.NewIPRangeQuery(cidr)
|
||||
}
|
||||
|
Reference in New Issue
Block a user