lib/picky/internals/indexing/category.rb in picky-2.1.0 vs lib/picky/internals/indexing/category.rb in picky-2.1.1

- old
+ new

@@ -10,19 +10,20 @@ delegate :source, :source=, :tokenizer, :tokenizer=, :to => :indexer # 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::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): + # Advanced Options: # - # * weights: - # * tokenizer: + # * weights: Query::Weights.new( [:category1, :category2] => +2, ... ) + # * tokenizer: Use a subclass of Tokenizers::Base that implements #tokens_for and #empty_tokens. # # TODO Should source be not optional, or taken from the index? # def initialize name, index, options = {} @name = name \ No newline at end of file