Upgrade bleve from v2.0.6 to v2.3.0 (#18132)

This commit is contained in:
Lunny Xiao 2022-01-01 16:26:27 +08:00 committed by GitHub
parent 1a4e2bfcd1
commit 25a290e320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 1283 additions and 660 deletions

View file

@ -16,6 +16,7 @@ package bleve
import (
"context"
"github.com/blevesearch/bleve/v2/index/upsidedown"
"github.com/blevesearch/bleve/v2/document"
@ -306,3 +307,15 @@ type Builder interface {
func NewBuilder(path string, mapping mapping.IndexMapping, config map[string]interface{}) (Builder, error) {
return newBuilder(path, mapping, config)
}
// IndexCopyable is an index which supports an online copy operation
// of the index.
type IndexCopyable interface {
// CopyTo creates a fully functional copy of the index at the
// specified destination directory implementation.
CopyTo(d index.Directory) error
}
// FileSystemDirectory is the default implementation for the
// index.Directory interface.
type FileSystemDirectory string