-
Hi, I've declared two fields as filterable in the schema. Schema
I've created a search function Search Function
I've created a filter_form Search Function
//flop_components.ex I've added a search box to the component in the template heex template
But...when I search, I can only search in the one field - country_name. If I add another filterable field country_code in the heex template, it adds entire another search box for that field. I need to have one search box and to be able to search for all the fields that are declared in the Flop.Schema as filterable. How to do it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All is sorted now. I had to use
and I had to change my convoluted query into a simpler Flop's query.
|
Beta Was this translation helpful? Give feedback.
All is sorted now. I had to use
compound_fields
and also add the new virtual field that would combine both fields to the list offilterable:
and I had to change my convoluted query into a simpler Flop's query.