Sha256: c2f4add0fe85da5eb806d2b2fc55452dda35b8da1ea0a1d3f6351842af3e4e92
Contents?: true
Size: 1.81 KB
Versions: 4
Compression:
Stored size: 1.81 KB
Contents
module Picolena # Specify indexes path. # Storage should be sufficient in order to store all indexed data. IndexesSavePath=File.join(RAILS_ROOT, 'tmp/ferret_indexes/') # Which language should be used? # English (:en), German (:de), French (:fr) and Spanish (:es) are currently supported # English is chosen by default. # If you'd like to use another language, you can find templates in #{RAILS_ROOT}/lang/ui, # then add your own language in this directory, and modify this line: Globalite.language = :en # Is more than one language used in indexed documents? # Picolena can try to recognise the language used, and save it in the index. # It is then possible to look for documents according to their language. # # If every document is written in the same language, turning UseLanguageRecognition to false # will speed up the indexing process UseLanguageRecognition = true # Specify which locale should be used by Ferret Ferret.locale = "en_US.UTF-8" # Results per page ResultsPerPage = 10 # Length of "probably unique id" 's # Those id's are used to characterize every document, thus allowing tiny URLs in Controllers # HashLength = 10 # Document.new("whatever.pdf").probably_unique_id => "bbuxhynait" # HashLength = 20 # Document.new("whatever.pdf").probably_unique_id => "jfzjkyfkfkbbuxhynait" # The more documents you have, the bigger HashLength should be in order to avoid collisions. # It would not be wise (and specs won't pass) to specify HashLength smaller than 10. HashLength = 10 # Specify the default Levenshtein distance when using FuzzyQuery # see http://ferret.davebalmain.com/api/classes/Ferret/QueryParser.html for more information. Ferret::Search::FuzzyQuery.default_min_similarity=0.6 Analyzer=Ferret::Analysis::StandardAnalyzer.new end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
picolena-0.1.2 | lib/picolena/config/basic.rb |
picolena-0.1.3 | lib/picolena/config/basic.rb |
picolena-0.1.4 | lib/picolena/config/basic.rb |
picolena-0.1.5 | lib/picolena/config/basic.rb |