Aglolia filtering using country code not working

filter_str += ’ (countries_code:’+ user_currency_data.country_short_name +’) AND ';

This is my code and it is not working!

Hi there,

how are you passing this filter to the API?

Something like this should work:

index.search('', {filters: 'countries_code:EN'});

The “AND” at the end of your string also seems to be invalid.

You can find more about filters here:

Let me know if this helps you out!