mikelgp84_180544 avatar image
mikelgp84_180544 asked Erick Ramirez edited

Set different prefixes in a multiple facet JSON query field type in DSE Search

I want to do a facet multiple field JSON query with one prefix for each field. My fields are name and surname and I want facet names starting with "ab" and surnames starting by "th". I have tried many solutions but anyone works. I have tried the following solr query : ... solr_query='{"q":"*:*","facet":{"field":["name","surname"], "prefix":["ab","th"]}}' however the prefix "ab" is applied to both fields, name and surname and I want surnames starting with "th". Do you have any solution for this problem? Thank you.

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

0 Answers