Sha256: e9497ab2ab764ed8aa0fa552dc098b1b81197c3a46dc1a3afbcb6019ba925f2d
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
module IiifPrint # add highlighting on _stored_ full text field if this is a keyword search # can be added to default_processor_chain in a SearchBuilder class module HighlightSearchParams # add highlights on full text field, if there is a keyword query def highlight_search_params(solr_parameters = {}) return unless solr_parameters[:q] || solr_parameters[:all_fields] solr_parameters[:hl] = true solr_parameters[:'hl.fl'] = 'all_text_tsimv' solr_parameters[:'hl.fragsize'] = 100 solr_parameters[:'hl.snippets'] = 5 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iiif_print-1.0.0 | app/search_builders/concerns/iiif_print/highlight_search_params.rb |