app/controllers/concerns/search_solr.rb
# execute a solr query with the option of paginating results (using 'start' and 'rows')
execute a solr query with the option of paginating results (using 'start' and 'rows')
execute a solr query with the option of paginating results ( using ' start ' and ' rows ' )
def solr_filter_query(q='*:*', fq='', fl='id', rows=0, sort="id asc", start=0)
    response = solr_connect.get 'select', :params => {
        :q => q,
        :fq => fq,
        :fl => fl,
        :rows => rows,
        :sort => sort,
        :start => start
    }
    response['response']
  rescue => e
    handle_exception(e, "Unable to execute Solr query. Make sure Solr is running",
                     "Error connecting to Solr. Given params 'q' => '" +
                         q.to_s + "', 'fq' => '" +
                         fq.to_s + "', 'fl' => '" +
                         fl.to_s + "', 'rows' => '" +
                         rows.to_s + "', 'sort' => '" +
                         sort.to_s + "', 'start' => '" +
                         start.to_s + "'", true)
    raise
  end
def solr_filter_query ( q = '*:*' , fq = '' , fl = 'id' , rows = 0 , sort = "id asc" , start = 0 ) response = solr_connect . get 'select' , :params => { :q => q , :fq => fq , :fl => fl , :rows => rows , :sort => sort , :start => start } response [ 'response' ] rescue => e handle_exception ( e , "Unable to execute Solr query. Make sure Solr is running" , "Error connecting to Solr. Given params 'q' => '" + q . to_s + "', 'fq' => '" + fq . to_s + "', 'fl' => '" + fl . to_s + "', 'rows' => '" + rows . to_s + "', 'sort' => '" + sort . to_s + "', 'start' => '" + start . to_s + "'" , true ) raise end
execute a solr query with the option of paginating results (using 'start' and 'rows')
execute a solr query with the option of paginating results ( using ' start ' and ' rows ' )
# showstopper - can't continue after this
q
<not_specific>
fq
<not_specific>
fl
<not_specific>
rows
<not_specific>
sort
<not_specific>
start
<not_specific>