Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Relevance Options for Custom fields weight (_sku)
- This topic has 16 replies, 2 voices, and was last updated 3 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
June 27, 2022 at 1:50 pm #38213
dekow
ParticipantHello,
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 #38219Ernest Marcinko
KeymasterHi,
The terms weight is used for the custom fields (_sku) as well.
If you see no noticable difference, then maybe using the index table engine is the better way to get around this.June 28, 2022 at 7:29 am #38221dekow
ParticipantWe 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?
June 28, 2022 at 10:10 am #38224Ernest Marcinko
KeymasterYou 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.
June 28, 2022 at 12:11 pm #38225dekow
ParticipantYou cannot access this content.
June 29, 2022 at 8:08 am #38228dekow
ParticipantHi Ernest,
Did you had time to check, I sent information for access in private message.
June 30, 2022 at 11:51 am #38245Ernest Marcinko
KeymasterThank you!
I have tried a few searches, but it seemed okay from my end. For example:
– SKU 1095, results: https://i.imgur.com/0TghKAK.png
– SKU 1253/L, results: https://i.imgur.com/sErIczP.png
Is this not correct?June 30, 2022 at 12:05 pm #38246dekow
ParticipantBasically 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.July 4, 2022 at 8:42 am #38288Ernest Marcinko
KeymasterOkay – 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.
July 4, 2022 at 9:00 am #38289dekow
ParticipantAs 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 #38291Ernest Marcinko
KeymasterThanks!
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?
July 4, 2022 at 1:32 pm #38292dekow
ParticipantHi,
thanks! could you please specify what changes were made and where?
July 4, 2022 at 2:03 pm #38294Ernest Marcinko
KeymasterOnly 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.
July 4, 2022 at 2:13 pm #38296dekow
Participantthanks. when release is coming? As we were planing to make release today for our production
July 4, 2022 at 2:14 pm #38297Ernest Marcinko
KeymasterYou can copy that file into the production server and it will be fine as well.
The next release should be in around 2 weeks.
-
AuthorPosts
- You must be logged in to reply to this topic.