How can I search enum field type values with 'search_fields'?


When using the API for a search, you can include the search_fields parameter to specify additional fields to search for.

However, I’m finding that when including a field with the data type of enum, it’s not getting matched. Is this supported? For reference, the enum field I added was just an array of strings.

It is possible to match enum fields once they are added to the search_fields parameter.

What you might be running into is that enums will only return exact matches. If you pass in a quoted query string with the exact enum value, it will work.

If it’s desired to have general matching for these strings, you likely want to change to using the string field type. We have more detail on these data types in the following documentation: