How can i remove minimum character validation in catalog search?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
vishal_thakur
Posts: 13
Joined: 28 Jul 2021, 11:59

How can i remove minimum character validation in catalog search?

Post by vishal_thakur » 03 Sep 2021, 11:54

How can i remove minimum character validation in catalog search?

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

Re: How can i remove minimum character validation in catalog search?

Post by aimeos » 04 Sep 2021, 06:56

In custom JS, set:

Code: Select all

AimeosCatalogFilter.MIN_INPUT_LEN = 1;
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

vishal_thakur
Posts: 13
Joined: 28 Jul 2021, 11:59

Re: How can i remove minimum character validation in catalog search?

Post by vishal_thakur » 06 Sep 2021, 11:44

aimeos wrote: 04 Sep 2021, 06:56 In custom JS, set:

Code: Select all

AimeosCatalogFilter.MIN_INPUT_LEN = 1;
it's only works for frontend means it's only remove min input length validation from frontend
we have some products which have only 2 digit SKU code . like 0-99 https://prnt.sc/1re08uj
but search doesn't work with 1 or 2 digit : https://prnt.sc/1re0fy7
can you please check this ?

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

Re: How can i remove minimum character validation in catalog search?

Post by aimeos » 07 Sep 2021, 08:23

The MySQL full text search has a minimum character length too. Here you can find how to change that:
https://aimeos.org/docs/latest/infrastr ... hort-words
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

vishal_thakur
Posts: 13
Joined: 28 Jul 2021, 11:59

Re: How can i remove minimum character validation in catalog search?

Post by vishal_thakur » 08 Sep 2021, 06:30

aimeos wrote: 07 Sep 2021, 08:23 The MySQL full text search has a minimum character length too. Here you can find how to change that:
https://aimeos.org/docs/latest/infrastr ... hort-words
For Search for short words https://aimeos.org/docs/2021.x/infrastr ... hort-words
Where my.cnf configuration file is located?
what is exact path for .cnf file?

Post Reply