Thank you Jeremy. Can use a dynamic field for the source field in a copyField directive? Does the order in which these statements appear relavant?
Thank you! <field name="facets" type="string" indexed="true" stored="true" required="false" multiValued="true" /> <copyField source="facets_ss" dest="facets"/> <dynamicField name="*_ss" type="text_general" indexed="true" stored="true" required="false" multiValued="true" /> [cid:32a6a450-c63f-4531-9b8e-d5545113bc0b] Matthew Castrigno IHT Developer II St. Luke’s Health System • 208-859-4276 • castr...@slhs.org<mailto:xxxxx...@slhs.org> ________________________________ From: Jeremy Buckley - IQ-C <jeremy.buck...@gsa.gov.INVALID> Sent: Thursday, February 2, 2023 4:16 PM To: users@solr.apache.org <users@solr.apache.org> Subject: Re: facet.field reported as individual words and not the complete string The culprit here is text_general. Your field is getting tokenized at index time, and each token gets returned as a facet value. Fields that you plan to use for faceting (or sorting) should be string or some numeric type. Common practice is ZjQcmQRYFpfptBannerStart This Message Is From an Untrusted Sender You have not previously corresponded with this sender. ZjQcmQRYFpfptBannerEnd The culprit here is text_general. Your field is getting tokenized at index time, and each token gets returned as a facet value. Fields that you plan to use for faceting (or sorting) should be string or some numeric type. Common practice is to define a second field of type string and use a copyField directive in your schema to copy the value of the first field into the second. Use the new field for sorting and faceting, and use the original text_general field for full text search. ---------------------------------------------------------------------- "This message is intended for the use of the person or entity to which it is addressed and may contain information that is confidential or privileged, the disclosure of which is governed by applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this information is strictly prohibited. If you have received this message by error, please notify us immediately and destroy the related message."