Sha256: dba3f4eabf0dd515d0de03c58f4904e0ad0f59e8dbc5c88ccf9c9cd1fb55fadb
Contents?: true
Size: 580 Bytes
Versions: 37
Compression:
Stored size: 580 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
37 entries across 37 versions & 1 rubygems