Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Not sure if this is a Facet API question or a Solr Search question...
Is it possible to index a field fulltext for search capability and index as a string for a facet search as well? I have read that you can use dynamicField and copyField to store an unstemmed and stemmed version of the field. How do you specify the unstemmed version of the field for facet and the stemmed version for the Search Views (7.x-1.4) criteria filter?
Comments
Comment #1
drunken monkeySolving this with Solr's
<copyField>
directive would require some custom code.It would be easier to use the "Aggregated fields" data alteration to create a copy of the field in question. Then you can just index the copy as a string and use that for facets (or the other way round).
Comment #2
2sense CreditAttribution: 2sense commentedNow that you point it out it seems so logical.... thanks.