I have a Category
field in sitecore and it is currently stored as a text_general
in Solr. It has this type because I need it to be tokenized and lowercase for searching.
On the other hand I need to do a grouping of the results by this field and for this the field has to be single-valued (single token).
So I think that the best way would be to duplicate this field in Solr and store it with two different types: category_s
for grouping and category_t
for searching.
What is the best way to achive this? Is it possible to do this in sitecore config patch without touching the schema.xml
file?
I use Solr 6.1 with Sitecore 8.2