This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Relevance Options for Custom fields weight (_sku)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Relevance Options for Custom fields weight (_sku)

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #38213
    dekowdekow
    Participant

    Hello,

    How should we change Relevance Options for Custom fields weight (_sku) if we are using Regular engine (Ajax Search PRO)?

    #38219
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    #38221
    dekowdekow
    Participant

    We 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?

    #38224
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You 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.

    #38225
    dekowdekow
    Participant

    You cannot access this content.

    #38228
    dekowdekow
    Participant

    Hi Ernest,

    Did you had time to check, I sent information for access in private message.

    #38245
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank 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?

    #38246
    dekowdekow
    Participant

    Basically 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.

    #38288
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Okay – 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.

    #38289
    dekowdekow
    Participant

    As I mentioned above, we do not have FTP. You can edit files thought admin panel.

    With regular engine the same problem appear.

    #38291
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thanks!

    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?

    #38292
    dekowdekow
    Participant

    Hi,

    thanks! could you please specify what changes were made and where?

    #38294
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Only 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.

    #38296
    dekowdekow
    Participant

    thanks. when release is coming? As we were planing to make release today for our production

    #38297
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You can copy that file into the production server and it will be fine as well.

    The next release should be in around 2 weeks.

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.