forked from forgejo/forgejo
Update to last common bleve (#3986)
This commit is contained in:
parent
1b7cd3d0b0
commit
917b9641ec
184 changed files with 39576 additions and 121 deletions
11
vendor/github.com/blevesearch/bleve/document/indexing_options.go
generated
vendored
11
vendor/github.com/blevesearch/bleve/document/indexing_options.go
generated
vendored
|
@ -20,6 +20,7 @@ const (
|
|||
IndexField IndexingOptions = 1 << iota
|
||||
StoreField
|
||||
IncludeTermVectors
|
||||
DocValues
|
||||
)
|
||||
|
||||
func (o IndexingOptions) IsIndexed() bool {
|
||||
|
@ -34,6 +35,10 @@ func (o IndexingOptions) IncludeTermVectors() bool {
|
|||
return o&IncludeTermVectors != 0
|
||||
}
|
||||
|
||||
func (o IndexingOptions) IncludeDocValues() bool {
|
||||
return o&DocValues != 0
|
||||
}
|
||||
|
||||
func (o IndexingOptions) String() string {
|
||||
rv := ""
|
||||
if o.IsIndexed() {
|
||||
|
@ -51,5 +56,11 @@ func (o IndexingOptions) String() string {
|
|||
}
|
||||
rv += "TV"
|
||||
}
|
||||
if o.IncludeDocValues() {
|
||||
if rv != "" {
|
||||
rv += ", "
|
||||
}
|
||||
rv += "DV"
|
||||
}
|
||||
return rv
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue