Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread David Hastings
Of course. Also, remember there are things to consider like if you want to store/retrieve it as an absolute string including capitalization for a facet/Drop down selection or only as a search field. lots of nuances. -Dave

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Matthew Castrigno
Thanks Dave. That seems to work. From: Dave Sent: Friday, December 9, 2022 11:19 AM To: Matthew Castrigno Cc: users@solr.apache.org ; a...@petdance.com Subject: Re: Using the fq parameter to filter for a value that is multivalued field. Try adding each value

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Dave
quot;,"Article"] > > How do I get SOPLR to not add the \ ? > > Thank you! > > > > From: Walter Underwood > Sent: Friday, December 9, 2022 10:42 AM > To: users@solr.apache.org > Subject: Re: Using the fq parameter to filter for a value that is multivalu

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Matthew Castrigno
ticle"] Instead of facets_ss":["Blogs","Article"] How do I get SOPLR to not add the \ ? Thank you! ____________________ From: Walter Underwood Sent: Friday, December 9, 2022 10:42 AM To: users@solr.apache.org Subject: Re: Using the fq parameter to filter

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Walter Underwood
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 http://observer.wunderwood.org/ (my blog) > On Dec 9, 2022, at 9:22 AM, Matthew Castrigno wrote: > > I am having trouble usi

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Andy Lester
> On Dec 9, 2022, at 11:22 AM, Matthew Castrigno wrote: > > "myField":["apple, pear"] That's not multivalued. That's a single value and the value is "apple, pear". You need to pass multiple values to Solr for the field when you do your indexing. Basically, you need to pass one myField:ap

Re: Using the fq parameter to filter for a value that is multivalued field.

2022-12-09 Thread Dave
"apple, pear" That looks like a string not a multi valued field to me. Maybe I’m wrong but you should have quotes around each element of the array > On Dec 9, 2022, at 12:23 PM, Matthew Castrigno wrote: > > "apple, pear"