lib/picky/internals/indexing/category.rb in picky-2.0.0.pre2 vs lib/picky/internals/indexing/category.rb in picky-2.0.0.pre3

- old
+ new

@@ -12,19 +12,21 @@ # Mandatory params: # * name: Category name to use as identifier and file names. # * index: Index to which this category is attached to. # Options: # * partial: Partial::None.new, Partial::Substring.new(from:start_char, to:up_to_char) (defaults from:-3, to:-1) - # * similarity: Similarity::None.new (default), Similarity::Phonetic.new(amount_of_similarly_linked_words) + # * similarity: Similarity::None.new (default), Similarity::DoubleMetaphone.new(amount_of_similarly_linked_words) # * source: Use if the category should use a different source. # * from: The source category identifier to take the data from. # # Advanced Options (TODO): # # * weights: # * tokenizer: # + # TODO Should source be not optional, or taken from the index? + # def initialize name, index, options = {} @name = name @from = options[:from] # Now we have enough info to combine the index and the category. @@ -57,11 +59,9 @@ def from @from || name end - # TODO Spec. - # def backup_caches timed_exclaim "Backing up #{identifier}." exact.backup partial.backup end \ No newline at end of file