Class: IiifSearchBuilder
- Inherits:
-
Blacklight::SearchBuilder
- Object
- Blacklight::SearchBuilder
- IiifSearchBuilder
- Includes:
- Blacklight::Solr::SearchBuilderBehavior
- Defined in:
- lib/generators/blacklight_iiif_search/templates/iiif_search_builder.rb
Overview
SearchBuilder for full-text searches with highlighting and snippets
Instance Method Summary collapse
-
#ocr_search_params(solr_parameters = {}) ⇒ Object
set params for ocr field searching.
Instance Method Details
#ocr_search_params(solr_parameters = {}) ⇒ Object
set params for ocr field searching
10 11 12 13 14 15 16 |
# File 'lib/generators/blacklight_iiif_search/templates/iiif_search_builder.rb', line 10 def ocr_search_params(solr_parameters = {}) solr_parameters[:facet] = false solr_parameters[:hl] = true solr_parameters[:'hl.fl'] = blacklight_config.iiif_search[:full_text_field] solr_parameters[:'hl.fragsize'] = 100 solr_parameters[:'hl.snippets'] = 10 end |