Forum

Notifications
Clear all

Search Issue

10 Posts
3 Users
0 Likes
349 Views
(@tango)
Posts: 16
Eminent Member
Topic starter
 

Hello guys,

I have a problem with the default Osclass Search as it follows:

  • Edit the MySQL my.ini file and add:
    innodb_ft_min_token_size=2
    ft_min_word_len=2

  • I post an ad with the title: BMW X6
  • Search for BMW, or X6, or BMW X6 -> result: There are no results matching "bmw x6"

What can I do to fix this?

Thanks!

EDIT: Ok, I've found this by Marius, but it's too complicated.
Isn't there an easier way to do it?

 
Posted : 19/04/2020 5:55 pm
(@tango)
Posts: 16
Eminent Member
Topic starter
 

Got it to work by deleting the database and reinstalling it.
According to the MySQL Manual, after you change the word length, you have to rebuild the indexes.

So there are 2 options after you modify the Word Length:
1. Either rebuild indexes (tricky).
2. Or just do a clean install (safest).

 
Posted : 20/04/2020 6:22 pm
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

If you set it to low (under 3) your server will suffer. That is why i modified the core to add underlines for under 4 characters words. The idea wasn't mine. I saw it as a request on the old forum.

There are other cases like iphone x , lancer evo x, etc. If you set it to 1 and the search uses wildcards, then imagine the search results for 'a'.

 
Posted : 21/04/2020 9:18 pm
Izzyboi
(@izzyboi)
Posts: 38
Eminent Member
 

If you set it to low (under 3) your server will suffer. That is why i modified the core to add underlines for under 4 characters words. The idea wasn't mine. I saw it as a request on the old forum.

There are other cases like iphone x , lancer evo x, etc. If you set it to 1 and the search uses wildcards, then imagine the search results for 'a'.

Hello Marius, please how do I make your method work on beta theme

 
Posted : 22/05/2020 2:03 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

Hi.You have the link in this post. It is not covering the admin area. The ideea is simple. Before display, parse title and description to remove underlines. Before saving the title and description add underline to all under 4 character words. The title from url must receive the same  treatment. It is a big and slow task. There is no shortcut. Also it requires core changes.

 
Posted : 23/05/2020 8:41 pm
Izzyboi
(@izzyboi)
Posts: 38
Eminent Member
 

Hi.You have the link in this post. It is not covering the admin area. The ideea is simple. Before display, parse title and description to remove underlines. Before saving the title and description add underline to all under 4 character words. The title from url must receive the same  treatment. It is a big and slow task. There is no shortcut. Also it requires core changes.

Thank you
I'm about to start but I have a question,will this work on beta theme

Also in my seo friendly links for item,I have replaced _ with -
Will it still work

 
Posted : 29/05/2020 8:46 pm
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

If you debug where to call removeunderline in that theme, yes. I suggest you clone your code locally or in a subdomain until you are shure you made all the changes, before testing in production. Also you will learn php by doing this. Use netbeans as IDE as it is free and it offers manny features as opposed to cpanel editor.

 
Posted : 29/05/2020 10:34 pm
Izzyboi
(@izzyboi)
Posts: 38
Eminent Member
 

If you debug where to call removeunderline in that theme, yes. I suggest you clone your code locally or in a subdomain until you are shure you made all the changes, before testing in production. Also you will learn php by doing this. Use netbeans as IDE as it is free and it offers manny features as opposed to cpanel editor.

Thank you, I'll try it on a subdomain
I'm not skilled in php and coding,how do I debug please

 
Posted : 30/05/2020 12:54 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

You look at what I changed in bender and in which file and by analogy you seek it in your theme.

 
Posted : 30/05/2020 10:09 am
Izzyboi
(@izzyboi)
Posts: 38
Eminent Member
 

OK, thank you

 
Posted : 30/05/2020 12:40 pm
Share: