Thank you for your comments that appears to be the root of the problem. Fixing it raises another question.
The incorrect multivalued fields were being created with a script line: doc.addField("facets_ss", contentObject.Page.Facets.join(",")); When I try to fix that with: doc.addField("facets_ss", contentObject.Page.Facets.join('","')); or doc.addField("facets_ss", contentObject.Page.Facets.join("\",\"")); SOLR is adding escape characters that I do not want: facets_ss":["Blogs\",\"Article"] Instead of facets_ss":["Blogs","Article"] How do I get SOPLR to not add the \ ? Thank you! ________________________________ From: Walter Underwood <wun...@wunderwood.org> Sent: Friday, December 9, 2022 10:42 AM To: users@solr.apache.org <users@solr.apache.org> Subject: Re: Using the fq parameter to filter for a value that is multivalued field. If you want apple OR pear, use: myField: apple myField: pear If you want apple AND pear, use: +myField: apple +myField: pear wunder Walter Underwood wunder@ wunderwood. org https: //urldefense. com/v3/__http: //observer. wunderwood. org/__;!!FkC3_z_N!LRDNStCCNvSo41v6qHKPwTuNZI6crIfaKdZYFvi5GOnrHPe-Mydnv-DIN9QR0Ljh37Du8EPZPnVx0u66$ ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside the St. Luke's email system. ZjQcmQRYFpfptBannerEnd If you want apple OR pear, use: myField:apple myField:pear If you want apple AND pear, use: +myField:apple +myField:pear wunder Walter Underwood wun...@wunderwood.org https://urldefense.com/v3/__http://observer.wunderwood.org/__;!!FkC3_z_N!LRDNStCCNvSo41v6qHKPwTuNZI6crIfaKdZYFvi5GOnrHPe-Mydnv-DIN9QR0Ljh37Du8EPZPnVx0u66$ (my blog) > On Dec 9, 2022, at 9:22 AM, Matthew Castrigno <castr...@slhs.org> wrote: > > I am having trouble using the fq parameter to filter for a value that is in a > muilt-valued field. > > This works: > "myField":["apple"] > > fq=myField:"apple" > > document is returned > > > This does not work: > "myField":["apple, pear"] > > fq=myField:"apple" > > document is NOT returned > > What do I need to do get fq to find a value in a multi-valued field? > > Thank you! > > > ---------------------------------------------------------------------- > "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." ---------------------------------------------------------------------- "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."