lib/picky/query/indexes.rb in picky-4.6.3 vs lib/picky/query/indexes.rb in picky-4.6.4
- old
+ new
@@ -28,10 +28,21 @@
def initialize *indexes
IndexesCheck.check_backends indexes
@indexes = indexes
- @mapper = QualifierCategoryMapper.new indexes # TODO Move into search?
+ remap_qualifiers
+ end
+
+ # Updates the qualifier ("qualifier:searchterm") mapping.
+ #
+ # Example:
+ # You dynamically add a new category to an index.
+ # To add the qualifiers to a search, you call this
+ # method.
+ #
+ def remap_qualifiers
+ @mapper = QualifierCategoryMapper.new @indexes # TODO Move into search?
end
# Ignore the categories with these qualifiers.
#
# Example:
\ No newline at end of file