Hi,
cc6 build search with AND when several fields are indicate in "Searchable fields". In this case nothing appears in result,
Is it possible to build the query with OR ?
Thanks
Hi Chris,
Yes, but you will need to add the fields in the "where conditions" instead and remove them from the "searchable fields".
Model.field1/LIKE:%{data:keywords}%
OR
Model.field2/LIKE:%{data:keywords}%
OR
Model.field3/LIKE:%{data:keywords}%
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
HI
Further to this - how can I modify the query so:
[pre](
Model.firstname/LIKE:%{data:firstname}%[br]AND[br]Model.lastname/LIKE:%{data:lastname}%[br])[br]OR[br]Model.address/LIKE:%{data:address}%[/pre]
[br]
I can't seem to force those enclosing (). I have tried 'escaping' them /( and /) with no success. Do I need to resort to PHP?????
Regards
Nick