0
0
bleve/index/store
Marty Schoch fb0f4bbecd BREAKING CHANGE - new method to create memory only index
Previously bleve allowed you to create a memory-only index by
simply passing "" as the path argument to the New() method.

This was not clear when reading the code, and led to some
problematic error cases as well.

Now, to create a memory-only index one should use the
NewMemOnly() method.  Passing "" as the path argument
to the New() method will now return os.ErrInvalid.

Advanced users calling NewUsing() can create disk-based or
memory-only indexes, but the change here is that pass ""
as the path argument no longer defaults you into getting
a memory-only index.  Instead, the KV store is selected
manually, just as it is for the disk-based solutions.

Here is an example use of the NewUsing() method to create
a memory-only index:

NewUsing("", indexMapping, Config.DefaultIndexType,
         Config.DefaultMemKVStore, nil)

Config.DefaultMemKVStore is just a new default value
added to the configuration, it currently points to
gtreap.Name (which could have been used directly
instead for more control)

closes #427
2016-09-27 14:11:40 -04:00
..
boltdb BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
goleveldb BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
gtreap BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
metrics BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
moss BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
null added KVWriter.NewBatchEx() method 2016-01-13 16:19:04 -08:00
test Fix some typos 2016-01-15 05:46:27 +07:00
batch.go added Close() method to KVBatch interface 2016-01-07 17:54:21 -08:00
kvstore.go add support for gathering stats via map for easier consumption 2016-03-07 18:37:46 -05:00
merge.go remove NativeMergeOperator from core, it requires unsafe 2016-03-24 12:06:43 -04:00
multiget.go added KVReader.MultiGet() method 2016-01-13 15:12:10 -08:00