frappe.exceptions.ValidationError: Search field x is not valid - x is some custom_field or other

@Samuel_Gervais continuing from

For clues what to do here check this frappe.exceptions.ValidationError: Search field my_custom_field is not valid