Sha256: a69f0c497aade29005b48fe805bae61edd4a0772820b6691ec653376d186f4f9
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
module Geoblacklight module ControllerOverride extend ActiveSupport::Concern included do solr_search_params_logic << :add_spatial_params end def add_spatial_params(solr_params, req_params) if req_params[:bbox] solr_params[:bq] ||= [] solr_params[:bq] = ["#{Settings.GEOMETRY_FIELD}:\"IsWithin(#{req_params[:bbox]})\"^10"] solr_params[:fq] ||= [] solr_params[:fq] << "#{Settings.GEOMETRY_FIELD}:\"Intersects(#{req_params[:bbox]})\"" end solr_params end def web_services @response, @document = get_solr_response_for_doc_id params[:id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight-0.7.0 | lib/geoblacklight/controller_override.rb |