app/services/blacklight/search_service.rb
# a solr query method
# does a standard search but returns a simplified object.
# an array is returned, the first item is the query string,
# the second item is an other array. This second array contains
# all of the field values for each of the documents...
# where the field is the "field" argument passed in.
a solr query method
does a standard search but returns a simplified object.
an array is returned, the first item is the query string,
the second item is an other array. This second array contains
all of the field values for each of the documents
where the field is the "field" argument passed in.
a solr query method does a standard search but returns a simplified object . an array is returned the first item is the query string the second item is an other array . This second array contains all of the field values for each of the documents where the field is the " field " argument passed in .
def opensearch_response(field = nil, extra_controller_params = {})
      field ||= blacklight_config.view_config(:opensearch).title_field
      query = search_builder.with(user_params).merge(solr_opensearch_params(field)).merge(extra_controller_params)
      response = repository.search(query)
      [user_params[:q], response.documents.flat_map { |doc| doc[field] }.uniq]
    end
def opensearch_response ( field = nil , extra_controller_params = { } ) field ||= blacklight_config . view_config ( :opensearch ) . title_field query = search_builder . with ( user_params ) . merge ( solr_opensearch_params ( field ) ) . merge ( extra_controller_params ) response = repository . search ( query ) [ user_params [ :q ] , response . documents . flat_map { | doc | doc [ field ] } . uniq ] end
a solr query method
does a standard search but returns a simplified object.
a solr query method does a standard search but returns a simplified object .
field
<not_specific>
extra_controller_params
<not_specific>