Sha256: 61ba50143bda03cf0b2d95023b997d8943f5d7196c337bfb5ae33ac3a6e115a4
Contents?: true
Size: 579 Bytes
Versions: 17
Compression:
Stored size: 579 Bytes
Contents
# encoding: utf-8 # # Define a search over the books index. # BooksSearch = Picky::Search.new BooksIndex do # Normalizes special user input, Ä -> Ae, ñ -> n etc. searching substitutes_characters_with: Picky::CharacterSubstituters::WestEuropean.new, # Picky needs control chars *"~:, to pass through. removes_characters: /[^\p{L}\p{N}\s\/\-\_\&\.\"\~\*\:\,]/i, stopwords: /\b(and|the|of|it|in|for)\b/i, splits_text_on: /[\s\/\-\&]+/ boost [:title, :author] => +3, [:title] => +1 end
Version data entries
17 entries across 17 versions & 1 rubygems