JQADM search with wildcard?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 154
Joined: 09 Oct 2019, 09:42

JQADM search with wildcard?

Post by columbo » 02 Jul 2025, 18:53

Hi,

is it possible to search for customers in the backend/jqadm using wildcards (*, %, etc.)?
(using PostgreSQL)

For example, a customer with a company name of "Super Test Company".

Search for "Super" (first term, correct case (S))
-> OK, result: "Super Test Company".

Search for:
"super" (s … case sensitive), or
'Test' (2nd term) , or
"Company" (3rd term)
-> no results

Are there any options to search for eg.: "%test%" in jqadm?

thank you!

User avatar
aimeos
Administrator
Posts: 8622
Joined: 01 Jan 1970, 00:00

Re: JQADM search with wildcard?

Post by aimeos » 03 Jul 2025, 08:17

Overwrite the template in your own extension where you want to use a "%...%" based search and add "~=" as operator, e.g. here:
https://github.com/aimeos/ai-admin-jqad ... t.php#L191

Example:

Code: Select all

'customer.company' => ['op' => '~='],
This enables searching within the string but be aware that no index is used that it will be very slow when you have a lot of recoreds.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply