markovo Posted January 18, 2021 Share Posted January 18, 2021 (edited) Hello, The search function in my shop does not work as I want it to. Here is an example: When I type "Mavic 2" I get the following results in ajax instant search: Mavic Air 2 / DJI Mini 2 RC Cable DJI Mavic Air 2 DJI Mavic Air 2 Fly More Combo DJI Mavic Air 2 (NFS) DJI Mavic 2 Pro Camera Drone DJI Mavic 2 Zoom Camera Drone In other words the product I am looking for is down the line. Searching "osmo pocket" for example gives me this results: Is there any way to tell the search engine to display the main prodicts first and then their accessories? My search configuration is as follows and I use JoliSearch module: Edited January 18, 2021 by markovo Changing title (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted January 18, 2021 Share Posted January 18, 2021 First of all, that "2" in "Mavic 2" won't work. Prestashop has a minimum length of 3 positions. The logical approach would be to increase the search weight of the main product. But of course that will be hard when you have the weight for description, tags, etc set to zero. 2 Link to comment Share on other sites More sharing options...
markovo Posted January 18, 2021 Author Share Posted January 18, 2021 4 minutes ago, musicmaster said: First of all, that "2" in "Mavic 2" won't work. Prestashop has a minimum length of 3 positions. The logical approach would be to increase the search weight of the main product. But of course that will be hard when you have the weight for description, tags, etc set to zero. But I set the "Minimum word length (in characters)" to 1 character and as you can see typing "2" in the search bar works: I just can't understand why typing "Mavic 2" brings "Mavic Air 2" in first place: Link to comment Share on other sites More sharing options...
El Patron Posted January 18, 2021 Share Posted January 18, 2021 for some time, last few years we moved several clients to elastic search, here are addon'S for 1.6 https://addons.prestashop.com/en/search?search_query=elastic&compatibility=1.6.1& 1 Link to comment Share on other sites More sharing options...
musicmaster Posted January 18, 2021 Share Posted January 18, 2021 3 hours ago, markovo said: I just can't understand why typing "Mavic 2" brings "Mavic Air 2" in first place: Why not? Distance between key words plays no role in the Prestashop search algorithm. And as all products have the same weight for those keywords the determining factor becomes the way they happen to be stored. 2 Link to comment Share on other sites More sharing options...
markovo Posted January 19, 2021 Author Share Posted January 19, 2021 12 hours ago, musicmaster said: Why not? Distance between key words plays no role in the Prestashop search algorithm. And as all products have the same weight for those keywords the determining factor becomes the way they happen to be stored. Well, that's unfortunate... Thank you for your answers. It's more clear to me now. 14 hours ago, El Patron said: for some time, last few years we moved several clients to elastic search, here are addon'S for 1.6 https://addons.prestashop.com/en/search?search_query=elastic&compatibility=1.6.1& Will it work in my case? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now