Skip to content

Instantly share code, notes, and snippets.

@ktopping
Created February 11, 2010 23:39
Show Gist options
  • Save ktopping/302130 to your computer and use it in GitHub Desktop.
Save ktopping/302130 to your computer and use it in GitHub Desktop.
query.adjust_solr_params do |params|
params[:"f.#{Sunspot::Setup.for(MyModel).dynamic_field_factory(:custom).build(:my_field).indexed_name}.facet.prefix"] = my_leading_str
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment