Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Relevance Options for Custom fields weight (_sku)
This topic contains 16 replies, has 2 voices, and was last updated by Ernest Marcinko 8 months, 1 week ago.
- AuthorPosts
- June 27, 2022 at 1:50 pm #38213
Hello,
How should we change Relevance Options for Custom fields weight (_sku) if we are using Regular engine (Ajax Search PRO)?
June 27, 2022 at 9:43 pm #38219Hi,
The terms weight is used for the custom fields (_sku) as well.
Best,
If you see no noticable difference, then maybe using the index table engine is the better way to get around this.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 28, 2022 at 7:29 am #38221We can’t get direct hits on sku to the first place, whether it’s an Index table or a Regular engine. tried everything (screenshot attached).
maybe we can use some kind of hook or filter to achieve the desired results?
Attachments:
You must be logged in to view attached files.June 28, 2022 at 10:10 am #38224You don’t get matches for the SKU at all, or only some?
I suspect the issue might be somewhere else then. Can you please add temporary FTP and back-end details – I will check the configuration and debug the queries if needed.
If there are specific search phrases I should test with, let me know as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 28, 2022 at 12:11 pm #38225You cannot access this content.June 29, 2022 at 8:08 am #38228Hi Ernest,
Did you had time to check, I sent information for access in private message.
June 30, 2022 at 11:51 am #38245Thank you!
I have tried a few searches, but it seemed okay from my end. For example:
Best,
– SKU 1095, results: https://i.imgur.com/0TghKAK.png
– SKU 1253/L, results: https://i.imgur.com/sErIczP.png
Is this not correct?
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 30, 2022 at 12:05 pm #38246Basically in 90% of the time we search mostly by name or by SKU. I want that if there 100% match with SKU it must be always on the first place in search list. If there are two products with first products 100% match in the name and second product with 100% mach in SKU, then first should be product with SKU 100% match and then product with 100% name match.
Example:
– sku 202. there is a red glove. It shows 3-4th in the search list, but should be first. Screenshot attached.Attachments:
You must be logged in to view attached files.July 4, 2022 at 8:42 am #38288Okay – but all of those products have 202 in their SKUs, exactly a matching word.
Exact field matching is not possible with the Index table engine, it can only check the extracted words.Can you add temporary FTP access as well? I want to check if there is a way to somehow index custom fields as whole fields to a certain length. That might resolve this.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 4, 2022 at 9:00 am #38289As I mentioned above, we do not have FTP. You can edit files thought admin panel.
With regular engine the same problem appear.
July 4, 2022 at 1:25 pm #38291Thanks!
I managed to make an adjustment for better custom field exact matching. Most of the matches should be exact on the custom field. I can not guarantee a 100%, but it should be very very close to that.
Can you please test?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 4, 2022 at 1:32 pm #38292Hi,
thanks! could you please specify what changes were made and where?
July 4, 2022 at 2:03 pm #38294Only a single file was changed: wp-content/plugins/ajax-search-pro/includes/classes/etc/indextable.class.php
..and the index table was recreated using the “Create new index” button.I think I can keep this change in the upcoming release, so you don’t have to worry about it.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 4, 2022 at 2:13 pm #38296thanks. when release is coming? As we were planing to make release today for our production
July 4, 2022 at 2:14 pm #38297You can copy that file into the production server and it will be fine as well.
The next release should be in around 2 weeks.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.