lib/blacklight_range_limit/range_limit_builder.rb
# Another processing method, this one is NOT included in default processing chain,
# it is specifically swapped in *instead of* add_range_limit_params for
# certain ajax requests that only want to fetch range limit segments for
# ONE field. 
#
# It turns off facetting and sets rows to 0 as well, only results for
# single specified field are needed. 
#
# Specified field and parameters are specified in incoming parameters
# range_field, range_start, range_end
Another processing method, this one is NOT included in default processing chain,
it is specifically swapped in *instead of* add_range_limit_params for
certain ajax requests that only want to fetch range limit segments for
ONE field.

It turns off facetting and sets rows to 0 as well, only results for
single specified field are needed.

Specified field and parameters are specified in incoming parameters
range_field, range_start, range_end
Another processing method this one is NOT included in default processing chain it is specifically swapped in * instead of * add_range_limit_params for certain ajax requests that only want to fetch range limit segments for ONE field . It turns off facetting and sets rows to 0 as well only results for single specified field are needed . Specified field and parameters are specified in incoming parameters range_field range_start range_end
def fetch_specific_range_limit(solr_params)
      field_key = blacklight_params[:range_field] 
      start = blacklight_params[:range_start].to_i
      finish = blacklight_params[:range_end].to_i
      add_range_segments_to_solr!(solr_params, field_key, start, finish )
      solr_params.delete("facet.field")
      solr_params.delete("facet.field".to_sym)
      solr_params[:rows] = 0      
      return solr_params
    end
def fetch_specific_range_limit ( solr_params ) field_key = blacklight_params [ :range_field ] start = blacklight_params [ :range_start ] . to_i finish = blacklight_params [ :range_end ] . to_i add_range_segments_to_solr! ( solr_params , field_key , start , finish ) solr_params . delete ( "facet.field" ) solr_params . delete ( "facet.field" . to_sym ) solr_params [ :rows ] = 0 return solr_params end
Another processing method, this one is NOT included in default processing chain,
it is specifically swapped in *instead of* add_range_limit_params for
certain ajax requests that only want to fetch range limit segments for
ONE field.
Another processing method this one is NOT included in default processing chain it is specifically swapped in * instead of * add_range_limit_params for certain ajax requests that only want to fetch range limit segments for ONE field .
# what field to fetch for # Remove all field faceting for efficiency, we won't be using it. # We don't need any actual rows either
solr_params