Monday, March 3, 2014

Sitecore Solr Hints and Tips for Defining Schemas

All the fields that can be searched are available in the schema.xml file:




All these fields can be searched but unless "stored=true", you will not see this field value display in search results.  To have the field show up in search results, set "stored=true".




Also, "multivalued=true" must  be set for all fields that are multivalue picker fields.


Computed fields are stored in your VS solution in the Sitecore.ContentSearch.Solr.Indexes.Config file.




These are dynamic fields and will have all dynamic versions generated according to the set here in the solr.conf file:




This allows you to search for daterange_week_s and daterange_week_t but you will not be able to search for daterange_week.   To do this, it must be defined as a static field by adding it to solr.conf:






No comments:

Post a Comment