0
0
bleve/index/store/moss
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
..
batch.go MB-18715 - moss Merge() didn't bump bufUsed correctly 2016-03-15 17:09:40 -07:00
iterator.go moss kvstore iterator Seek() invokes underlying moss SeekTo() API 2016-09-22 17:46:06 -07:00
lower_test.go enable mossStore as configurable lower-level store 2016-05-26 13:33:22 -07:00
lower.go BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
reader.go tighter moss KV store iterator handling 2016-08-19 09:10:03 -07:00
stats.go index/store/moss KV backend propagates mossStore's Stats() 2016-09-08 17:12:04 -07:00
store_test.go integrate index/store/moss KV store 2016-02-20 14:25:42 -08:00
store.go index/store/moss KV backend propagates mossStore's Stats() 2016-09-08 17:12:04 -07:00
writer.go index/store/moss uses AllocMerge() instead of Merge() 2016-02-22 11:48:02 -08:00