Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

mikelgp84_180544 avatar image
mikelgp84_180544 asked ·

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.

dse searchfacetingprefix
10 |1000 characters needed characters left characters exceeded

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

0 Answers