Skip to content
jdar edited this page Sep 13, 2010 · 8 revisions

OVERVIEW
http://outoftime.github.com/sunspot/docs/classes/Sunspot.html#M000001

Sunspot modifies field names in a regular way while indexing and searching from ruby hash-parameters.

Were you to query a Sunspot-indexed record using a lower-level library like RSolr, you might see:
@rsolr.select(:q=>"*:*")[‘response’][‘docs’].first.keys
=> [“updated_at_ds”, “highest_score_is”, “title_texts”, “id”]

NOTES:
- id is magic… solr needs
- do not change primary key field

HOW TO:
- allowing OPTION of non-dynamic indexing by indexing through request_handlers in solrconfig.xml