Jump to content

USE"pack" can not search"2-Pack" is this a bug?


Recommended Posts

hello

everybody

this is first topic in english.

maybe some languages problem.

please forgive me.

 

in this website http://demo-store.prestashop.com

 

it has this product

Scented Soap 2-Pack

 

http://demo-store.prestashop.com/en/beauty-personal-care/76-scented-soap-2-pack.html

 

 

then when i search pack

but i can not find this product which i want

 

the website show me http://demo-store.prestashop.com/en/candles/71-three-tea-candles.html

Three Tea Candles

 

when i search 2 pack

the webstie show me http://demo-store.prestashop.com/en/search?orderby=position&orderway=desc&search_query=2+pack&submit_search=Search

 

Three Tea Candles

of course

It is not the result which I want

is this a bug?

i can not understand

who can explain it.

thanks

Link to comment
Share on other sites

it's probably because the index of the "search" wasn't rebuilded.

http://doc.prestashop.com/display/PS15/Understanding+The+Preferences#UnderstandingThePreferences-Search

(there is a topic "Indexation"

 

im not sure at all because we haven't got an access to the back office of this store, but this is a "fix" which usually works with "missed" products in the search results

Link to comment
Share on other sites

The reason it shows the three tea candles is because the word 'pack is in the (long) description of the product:

Pack of three candles comes with a wrought-iron holder, but ...

 

Try Vekia's suggestion to get the new Scented Soap 2-pack product in your search result as well.

(Still the three tea candles will be shown because of the word 'pack', but hopefully the soap product will pop up as well.

 

pascal

Link to comment
Share on other sites

it's probably because the index of the "search" wasn't rebuilded.

http://doc.prestasho...ferences-Search

(there is a topic "Indexation"

 

im not sure at all because we haven't got an access to the back office of this store, but this is a "fix" which usually works with "missed" products in the search results

 

OK.THANKS FOR YOUR KINDLY HELP

I WILL TRY

Link to comment
Share on other sites

The reason it shows the three tea candles is because the word 'pack is in the (long) description of the product:

Pack of three candles comes with a wrought-iron holder, but ...

 

Try Vekia's suggestion to get the new Scented Soap 2-pack product in your search result as well.

(Still the three tea candles will be shown because of the word 'pack', but hopefully the soap product will pop up as well.

 

pascal

 

OK。I WILL TRY.

Link to comment
Share on other sites

Hi,

 

I just had a look at the search pattern used. problem is here that any word in the contents must BEGIN with the search string given to make a match.

 

So:

- '2-pa' gets 2-pack, as the product name has three words:' Scented', 'soap' and '2-pack'. The last word matches.

- 'pac' DOESN'T get 2-pack, as the search string DOESN'T BEGIN with a 2. (It DOES get the 'Three tea candles' as there is a word 'pack' in the description, which matches.)

 

(N.B. '2pac' DOES get 2-pack, as the search string is cleaned up a little and skips '-', so 2-pack changes to 2pack, which then matches)

 

(N.B.2: Note that search string of 'pac three' also gets the 'three tea candles'. It searches each word in the search string separately BUT, they ALL must be within the same product, otherwise they don't show up. So 'pack four' doesn't show the three tea candles, as 'four' is not anywhere inside this product.)

 

 

So, it would be great if someone would/could modify the search and make it so that search strings DO NOT specifically have to start at the beginning, but also inside the strings.

 

Anyone up to the challenge?

pascal

Link to comment
Share on other sites

×
×
  • Create New...