0
0
bleve/search/searchers
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
..
base_test.go BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
ordered_searchers_list.go add newline between license and package 2014-09-02 10:54:50 -04:00
search_boolean_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_boolean.go simplify BooleanSearcher mustSearcher else logic 2016-09-20 18:11:04 -07:00
search_conjunction_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_conjunction.go optimize ConjunctionSearcher to avoid extra id comparisons 2016-09-22 17:46:06 -07:00
search_disjunction_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_disjunction.go optimize DisjunctionSearcher.Next() 2016-09-20 19:22:37 -07:00
search_docid_test.go BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
search_docid.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_fuzzy_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_fuzzy.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_match_all_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_match_all.go BREAKING CHANGE - removed DumpXXX() methods from bleve.Index 2016-09-13 12:40:01 -04:00
search_match_none_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_match_none.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_numeric_range_test.go major refactor of search package 2014-09-01 11:15:38 -04:00
search_numeric_range.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_phrase_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_phrase.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_regexp_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
search_regexp.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_term_prefix.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search_term_test.go BREAKING CHANGE - new method to create memory only index 2016-09-27 14:11:40 -04:00
search_term.go BREAKING CHANGE - removed DumpXXX() methods from bleve.Index 2016-09-13 12:40:01 -04:00