0
0
bleve/search
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
..
collectors BREAKING CHANGE - removed DumpXXX() methods from bleve.Index 2016-09-13 12:40:01 -04:00
facets Make facets much faster 2016-07-17 15:31:35 -07:00
highlight more gofmt simplifications 2016-04-03 00:03:33 -04:00
scorers optimize disjunction scorer to avoid locations alloc if unneeded 2016-09-22 18:19:21 -07:00
searchers BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
collector.go major refactor of index/search API 2016-07-31 13:46:18 -04:00
explanation.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00
facets_builder_test.go gofmt simplifications 2016-04-02 21:54:33 -04:00
facets_builder.go adds support for more complex field sorts with object (not string) 2016-08-17 14:33:51 -07:00
levenshtein_test.go moved levenshtein code outside of fuzzy searcher 2014-12-12 13:23:06 -05:00
levenshtein.go Fix some typos 2016-01-15 05:46:27 +07:00
pool_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
pool.go improved implementation to address perf regressions 2016-08-25 15:47:07 -04:00
search.go improved implementation to address perf regressions 2016-08-25 15:47:07 -04:00
sort.go cache values to avoid dynamic dispatch inside hot loop 2016-08-25 16:24:26 -04:00
util_test.go add newline between license and package 2014-09-02 10:54:50 -04:00
util.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00