weldmar Posted January 2, 2010 Share Posted January 2, 2010 When I tried to find somthing on the store I got a bogus result all the time. PLEASE HELP TO FIX IT. Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2010 Share Posted January 2, 2010 I think you'll need to be more specific than that if you want help. What do you mean by bogus result? Can you give us a link to your site so we can see the problem? Link to comment Share on other sites More sharing options...
weldmar Posted January 2, 2010 Author Share Posted January 2, 2010 it's a local site yet and I can't provide the link. But can I use an "or" specificator in some way - to search ONE or ANOTHER? Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2010 Share Posted January 2, 2010 No, it is not possible to do Boolean searches with the search function that comes with Prestashop. You'd have to modify classes/Search.php and modify the find function to take operators into account. Be aware that the AND keyword is blacklisted and so will be removed by the sanitize function before the find function is called. You'll have to remove it from the blacklist in Preferences > Search if you want to use it as an operator. Link to comment Share on other sites More sharing options...
cyberd0g Posted January 13, 2010 Share Posted January 13, 2010 No, it is not possible to do Boolean searches with the search function that comes with Prestashop. You'd have to modify classes/Search.php and modify the find function to take operators into account. Be aware that the AND keyword is blacklisted and so will be removed by the sanitize function before the find function is called. You'll have to remove it from the blacklist in Preferences > Search if you want to use it as an operator. Hi Rocky,judging by your answers to various questions regarding the search function in PS, I believe you can help me with a request from a client of mine.They sell mobile phones with accessories such as bluetooth. Currently when a search query is made for example Nokia 6303 or just 6303 the result is good but it also returns bluetooth headset or any item that has nokia 6303 somewhere in the description regardless of what categoty that item resides in.my client has requested that we have the search function modified so that it only query the item names in the database so the returning result will show only the item with the searched keyword in its name.the other example search we performed was "bluetooth", "bluetooth headset" but we got a bunch of phones in the result.can you please help?we can donate or if you prefer we can dicuss feesl.PS version 1.2.5.0http://egobas.co.uk/FM/cheers,Dee Link to comment Share on other sites More sharing options...
rocky Posted January 14, 2010 Share Posted January 14, 2010 Have you tried going to Preferences > Search and adjusting the weights? Perhaps you could try putting 10 as the "Product name weight" and 0 as all the other weights. Link to comment Share on other sites More sharing options...
cyberd0g Posted January 14, 2010 Share Posted January 14, 2010 Hi Rocky, Thanks for your reply. I did try that before but had no luck. Link to comment Share on other sites More sharing options...
rocky Posted January 14, 2010 Share Posted January 14, 2010 Did you click "Re-build entire index" after changing the weights? I'm not sure what else you can do, other than modify the find function in classes/Search.php yourself to make it search product names only. Link to comment Share on other sites More sharing options...
cyberd0g Posted January 14, 2010 Share Posted January 14, 2010 Yes I did the rebuild then I refreshed the front-end then performed another search but the result was not right. Link to comment Share on other sites More sharing options...
mhu100 Posted January 23, 2010 Share Posted January 23, 2010 Go to Preferences > Search and Set value of field "Minimum word length" to 0 (zero) and rebuild the index. That will do the job. 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