Update search filter in contact

hi,
i wanna search in contact page dashboard with my custom fields.
Is it possibile to update the search function?

Thanks

This is already possible by providing alias in the search field, like this: myfieldalias:value

thanks but is it possibile to update the code directly? so you don’t have to use aliases

Yeah you would have to create custom plugin with event subscribers placed right. Have you tried to searching value without alias?

i try but don’t working.

if I could search for the field directly, without specifying aliases it would be perfect. They will also use “non-technical” ones. The easier it is the better.

Hi simbiosi,

If you want to change the default search fields, you can modify the code to add new custom fields or delete default ones.

You should navigate to app/bundles/LeadBundle/Entity/LeadRepository.php.

In this example, I’m only using email, firstname, and lastname fields.