Skip to content

Instantly share code, notes, and snippets.

@devn
Created August 14, 2012 15:52
Show Gist options
  • Select an option

  • Save devn/3350442 to your computer and use it in GitHub Desktop.

Select an option

Save devn/3350442 to your computer and use it in GitHub Desktop.
rsolr = RSolr.connect(:url => 'http://127.0.0.1:8983/solr')
rsolr.add([{"id" => 10, "policy_area_texts" => "Health", "summary_texts" => "Everything about health"}, {"id" => 11, "policy_area_texts" => "Magic", "summary_texts" => "What magicians do"}])
rsolr.commit
# <dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment