Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › New item isn't Indexed
- This topic has 6 replies, 2 voices, and was last updated 10 years ago by
Ernest Marcinko.
-
AuthorPosts
-
March 11, 2016 at 7:32 am #7984
alcantaramaryann
ParticipantHello again!
I think I found a bug. The dropdown results doesn’t return a value when I search for an SKU with a special character.
This is the SKU I’m searching 2.643-150.0
On the Results page you can see the item: Karcher Foam Nozzle, 0.3 Litre 300mlAlso this happens even I just search for the first five characters like “2.643”
This doesn’t return any result on the dropdown.
But on the Results page there are more than 10 products.If this isn’t a bug can you explain why every time I added a new products it doesn’t show on the dropdown results until in Create a New Index.
Thank you!
March 11, 2016 at 9:52 am #7985Ernest Marcinko
KeymasterHi!
There are two reasons for this:
1. It’s because the dots “.” are treated as word boundaries and are replaced with an empty space.
In this case the “2.643-150.0” is treated as “2 643-150 0”, thus 3 separate words: 2, 643-150 and 0
If I search for 643-150 the product is returned as expected.To be honest I never thought of this, but it makes sense to somehow detect dots which are not word boundaries. I will definitely look into this for the upcoming update. This shouldn’t be too complicated to figure out.
2. There is a recently discovered bug in the index table engine regarding versions from 4.7-4.8.1 where when adding new posts/cpt the custom fields are not indexed in some cases.
I already have a fix for bug 2. but it involves changing multiple files, so I can’t suggest an quick fix for that now. There are two solution I can offer:
– Wait for the upcoming update within 1-3 days, it will fix both bugs (until then you can switch back to the regular engine, that should still work)
– You can provide FTP details and I fix the second bug on your server, but yet I can’t fix the first oneLet me know!
March 14, 2016 at 2:19 am #7988alcantaramaryann
ParticipantThank you for your response!
I think I’ll just wait for the new update to release.March 23, 2016 at 1:14 am #8142alcantaramaryann
ParticipantHello,
I have updated the plugin to version 4.8.2 and the bug for searching SKU custom fields with dash character is fixed.
But I’m still having problem when the SKU contains () like this one: C18DSL(H4)
It returns “No Result” in the dropdown result.Can you provide some fix? Thank you very much!
March 23, 2016 at 2:18 pm #8146Ernest Marcinko
KeymasterHi!
I have left the brackets there intentionally, as I thought they might be dangerous yet. It turns out they are not. I’ve made a tiny modification on the plugin code on your server, so the “(” and “)” characters are not removed when indexing. Also, I’ve re-generated the index table, so it should return result for C18DSL(H4) now.
I will investigate more of these special characters for the upcoming version, so I can enable more.
May 17, 2016 at 3:31 am #8690alcantaramaryann
ParticipantHi!
I think there’s another special character that doesn’t return result.
When I search for the ff., it returns no result in the drop down result box.
Gearwrench 3/8″ socket
Gearwrench 3/ socket
Gearwrench 8″ socketThe ” and / can’t be read as search value.
Can you provide some fix on this?
Again, thank you for your hard work!
May 17, 2016 at 4:07 pm #8723Ernest Marcinko
KeymasterHi!
A new version will be out soon, I will look into this and fix if possible.
-
AuthorPosts
- You must be logged in to reply to this topic.