cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 - May I know how the searching algorithms works means which class gets the search query

Magento 1.9 - May I know how the searching algorithms works means which class gets the search query

Hello,
Magento 1.9 - May I know how the searching algorithms works means which class gets the search query first so that we can alter the keyword in "q="
Or how can we write a new custom module to overide search function...

Simply saying for example we have a product "ABCDE product X" but normally people use small abbriviate name for "ABCDE" as "AB"  like "AB  product X" now as we are using fulltext option and as per mysqly it ignore less then 3-4 charaters word insearch...
So its showing wrong results...

SO I want have check on search q= (search query) parameter so that if it contains "AB " then it replaced with  "ABCDE" in backend...

2ndly I want to update the sorting order in a way that if a product in search result have particular word in its name then it comes first in search results...

Please let me know how can I achieve it...

Thanks in adavance