Jump to content

No results found for your search "a"


Recommended Posts

Hi,

It is due to your MySQL configuration.
The fulltext mode of MySQL automatically skip words less than 4 characters long. For example, if you're looking for "a big bottle of wine", it will only search for "bottle" and "wine", considering that the other words are useless for the search.
Of course, you can change this setting in your configuration.

Link to comment
Share on other sites

Hi

I have the same problem (I haven't added that description field though) , if I search using Tags it is working perfectly, but if I search with the search it returns nothing (or sometimes an unexpected result).

I have even created a whole new test domain installed from scratch since the release of version 1.005

Version 0.97 used to work (the search) beautifully - giving the % score as well.

Take a look at http://www.brilliantbikes.com/test

In the tags there is an item PAW-12 - the search finds it

Search for PAW-12 in the search box and it is not found.

Search in the backoffice and it's also found.

Any help would REALLY be appreciated.

- Andrew

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Hi all,

I'm having the same issue. My host (i'm on a shared server) has changed the MySQL to search words with 3 characters and more. But still some searches aren't returning products for some search terms and they now say its the Prestashop search function which is at fault. They say, quote

"Apologies, but its seems to be issue with the search script.
Its searching with you and had as independent search."

Basically, I'm searching for 'if i had you". A product description has this included, but is not being included in the search results. My host say something about an independant search?

Any help on this guys?

Thanks all

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

the problem is in the file /classes/Search.php file where there are "mistakes" using Mysql MATCH function.
As a matter of fact, some characters like "-" and " " souhld be replaced with "+" so as to search for both words in the query.

Coz if you look for a product reference like "SM-58" and do not replace that "-" ... then it will search for products that contains "SM" but not "58" !
So... characters "-", " " should be replaced by "+".

And then you can modify the query so as to adapt to what fields are really important in your shop (for instance I focused on Reference, Name and description and it works fine).

Link to comment
Share on other sites

  • 2 months later...

no :-p
coz it depends on your version.
Give me your file & I'll give it back to you. Or.. OK I'll post a Search.php file from PS 1.1 version.
But by now I'm on...... week end !
I'll give it to you on monday morning or tomorrow.... ok let's say tomorrow
Ciao

Link to comment
Share on other sites

no :-p
coz it depends on your version.
Give me your file & I'll give it back to you. Or.. OK I'll post a Search.php file from PS 1.1 version.
But by now I'm on...... week end !
I'll give it to you on monday morning or tomorrow.... ok let's say tomorrow
Ciao


Great mate, i have some search problems as well, this may help.
Link to comment
Share on other sites

  • 2 months later...

hi,
i have tryed your file search.php
but there is a problem, the search works bettern, he find more.
the problem ist, that he make blank pages at the end of the produkts see the screenshot

7585_spnjlVnF3CZokgfB0fv0_t

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...
  • 3 months later...
Hi,

It is due to your MySQL configuration.
The fulltext mode of MySQL automatically skip words less than 4 characters long. For example, if you're looking for "a big bottle of wine", it will only search for "bottle" and "wine", considering that the other words are useless for the search.
Of course, you can change this setting in your configuration.

how to modify the configuration
Link to comment
Share on other sites

×
×
  • Create New...