bugfixes more search results and dump restore options
This commit is contained in:
parent
f4fcf0d9a8
commit
3cd460318a
124 changed files with 3915 additions and 9579 deletions
27
vendor/github.com/blevesearch/bleve/index.go
generated
vendored
27
vendor/github.com/blevesearch/bleve/index.go
generated
vendored
|
|
@ -176,24 +176,6 @@ type Index interface {
|
|||
FieldDictRange(field string, startTerm []byte, endTerm []byte) (index.FieldDict, error)
|
||||
FieldDictPrefix(field string, termPrefix []byte) (index.FieldDict, error)
|
||||
|
||||
// DumpAll returns a channel receiving all index rows as
|
||||
// UpsideDownCouchRow, in lexicographic byte order. If the enumeration
|
||||
// fails, an error is sent. The channel is closed once the enumeration
|
||||
// completes or an error is encountered. The caller must consume all
|
||||
// channel entries until the channel is closed to ensure the transaction
|
||||
// and other resources associated with the enumeration are released.
|
||||
//
|
||||
// DumpAll exists for debugging and tooling purpose and may change in the
|
||||
// future.
|
||||
DumpAll() chan interface{}
|
||||
|
||||
// DumpDoc works like DumpAll but returns only StoredRows and
|
||||
// TermFrequencyRows related to a document.
|
||||
DumpDoc(id string) chan interface{}
|
||||
|
||||
// DumpFields works like DumpAll but returns only FieldRows.
|
||||
DumpFields() chan interface{}
|
||||
|
||||
Close() error
|
||||
|
||||
Mapping() *IndexMapping
|
||||
|
|
@ -228,6 +210,15 @@ func New(path string, mapping *IndexMapping) (Index, error) {
|
|||
return newIndexUsing(path, mapping, Config.DefaultIndexType, Config.DefaultKVStore, nil)
|
||||
}
|
||||
|
||||
// NewMemOnly creates a memory-only index.
|
||||
// The contents of the index is NOT persisted,
|
||||
// and will be lost once closed.
|
||||
// The provided mapping will be used for all
|
||||
// Index/Search operations.
|
||||
func NewMemOnly(mapping *IndexMapping) (Index, error) {
|
||||
return newIndexUsing("", mapping, Config.DefaultIndexType, Config.DefaultMemKVStore, nil)
|
||||
}
|
||||
|
||||
// NewUsing creates index at the specified path,
|
||||
// which must not already exist.
|
||||
// The provided mapping will be used for all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue