Skip to content

Custom indexing techniques

nyeholt edited this page Oct 1, 2010 · 1 revision

Indexing new fields

By default, the SilverStripe Solr module will index all properties exposed on a databobject via the "searchableFields" method, as well as

  • ID (as SS_ID to avoid any conflict with the solr document ID)
  • LastEdited
  • Created
  • ClassName
  • ClassNameHierarchy (a multi value field that stores the type hierarchy of objects)

When indexing a document, it will automatically map the SilverStripe field type to a Solr field type. For most users this will suffice, however you may want to define your own custom Solr schema, in which case you will need to define a mapping from SilverStripe field type to the Solr field you have defined.

@see SolrMapper