lib/picky/indexes_indexing.rb in picky-2.6.0 vs lib/picky/indexes_indexing.rb in picky-2.7.0
- old
+ new
@@ -1,33 +1,26 @@
# Indexes indexing.
#
class Indexes
- instance_delegate :take_snapshot,
- :generate_caches,
- :backup_caches,
- :restore_caches,
- :check_caches,
- :clear_caches,
- :create_directory_structure,
- :index,
- :index_for_tests
+ instance_delegate :index,
+ :check,
+ :clear,
+ :backup,
+ :restore,
+ :index_for_tests,
+ :tokenizer
- each_delegate :take_snapshot,
- :generate_caches,
- :backup_caches,
- :restore_caches,
- :check_caches,
- :clear_caches,
- :create_directory_structure,
+ each_delegate :check,
+ :clear,
+ :backup,
+ :restore,
:to => :indexes
# Runs the indexers in parallel (prepare + cache).
#
def index randomly = true
- take_snapshot
-
# Run in parallel.
#
timed_exclaim "Indexing using #{Cores.max_processors} processors, in #{randomly ? 'random' : 'given'} order."
# Run indexing/caching forked.
@@ -39,11 +32,15 @@
# For integration testing – indexes for the tests
# without forking and shouting ;)
#
def index_for_tests
- take_snapshot
-
indexes.each(&:index)
+ end
+
+ # TODO Doc. Spec. Split into Query/Index.
+ #
+ def tokenizer
+ Tokenizers::Index.default
end
end
\ No newline at end of file