mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Update Vendor (#16325)
* Add Dependencie Update Script * update gitea.com/lunny/levelqueue * update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-redis/redis/v8 * update github.com/hashicorp/golang-lru * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/olivere/elastic/v7 * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark
This commit is contained in:
		
							
								
								
									
										19
									
								
								vendor/github.com/olivere/elastic/v7/search_queries_prefix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/olivere/elastic/v7/search_queries_prefix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -10,11 +10,12 @@ package elastic | ||||
| // For more details, see | ||||
| // https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-prefix-query.html | ||||
| type PrefixQuery struct { | ||||
| 	name      string | ||||
| 	prefix    string | ||||
| 	boost     *float64 | ||||
| 	rewrite   string | ||||
| 	queryName string | ||||
| 	name            string | ||||
| 	prefix          string | ||||
| 	boost           *float64 | ||||
| 	rewrite         string | ||||
| 	caseInsensitive *bool | ||||
| 	queryName       string | ||||
| } | ||||
|  | ||||
| // NewPrefixQuery creates and initializes a new PrefixQuery. | ||||
| @@ -33,6 +34,11 @@ func (q *PrefixQuery) Rewrite(rewrite string) *PrefixQuery { | ||||
| 	return q | ||||
| } | ||||
|  | ||||
| func (q *PrefixQuery) CaseInsensitive(caseInsensitive bool) *PrefixQuery { | ||||
| 	q.caseInsensitive = &caseInsensitive | ||||
| 	return q | ||||
| } | ||||
|  | ||||
| // QueryName sets the query name for the filter that can be used when | ||||
| // searching for matched_filters per hit. | ||||
| func (q *PrefixQuery) QueryName(queryName string) *PrefixQuery { | ||||
| @@ -57,6 +63,9 @@ func (q *PrefixQuery) Source() (interface{}, error) { | ||||
| 		if q.rewrite != "" { | ||||
| 			subQuery["rewrite"] = q.rewrite | ||||
| 		} | ||||
| 		if q.caseInsensitive != nil { | ||||
| 			subQuery["case_insensitive"] = *q.caseInsensitive | ||||
| 		} | ||||
| 		if q.queryName != "" { | ||||
| 			subQuery["_name"] = q.queryName | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user