Problem activating the Boosts

  • Vladmir Carvalho
    Participant
    4 months, 4 weeks ago #46461

    Hello,

    I’m facing a problem activating the Boosts functionality in item 2.3. When I activate this option, the search appears to be restricted to just one field, instead of being performed on all configured fields. Currently, I’m trying to use the title, excerpt_t and content fields. However, if the user searches for words that are distributed across more than one of these fields, no results are returned. The search only brings results when all the words are concentrated in a single field.

    Could you help me resolve this problem?

    Thanks!

    wpsolr
    Keymaster
    4 months, 4 weeks ago #46464

    The field “content” contains all the data. You could add it, with a low boost value.

    Or you can select the boost option “Copy to a text field” for all the fields which are not processed by the analyser of your index settings (like “English”) by default.
    For instance, all taxonomy fields are not analysed, which make them irrelevant to most searches which are not exact.

    Notice that when you change the option to “Copy to a text field”, you will need to reindex all your data.

    Vladmir Carvalho
    Participant
    4 months, 3 weeks ago #46477

    I removed the excerpt_t , and observed that the search worked, but still not in the way I would like. Even including a greater weight for the “title” field, the search still returns some items first where the search term is in the “content” field. Maybe there is something related to the default second sort being Newst. In fact, I would really like the search to correctly differentiate the weights of the 3 fields, including the “excerpt” data. In order, “title”, “excerpt”, “content”.

    As for the boost option “Copy to a text field”, I couldn’t even find the option.

    Do you have any services for an expert to access my website and help me configure it?

    Thanks.

    wpsolr
    Keymaster
    4 months, 3 weeks ago #46478

    Which plugin and version do you use?

    Vladmir Carvalho
    Participant
    4 months, 3 weeks ago #46479

    WPSOLR PRO 24.0
    Search engine Elasticsearch (Keyword search)
    Hosting service Elastic
    —————————————
    Versão do WooCommerce: 9.3.3
    Versão do WordPress: 6.6.2

    wpsolr
    Keymaster
    4 months, 3 weeks ago #46480

    Please try without a sort. Sort should be “Relevancy”.

    The 3 fields you chose do not show “Copy to a text field”, because they are already using the analyser.

    Vladmir Carvalho
    Participant
    4 months, 3 weeks ago #46481

    without a sort is working in most products, but not in all, even with the same format.
    Can reindexing work with all products?

    However, for my store it is very important to always show the newest items, which in this case would be the last parameter. Essential when the user searches by category, without searching for any word. Is it not possible to include newest ones using Boosts?

    wpsolr
    Keymaster
    4 months, 3 weeks ago #46482

    With Elasticsearch, you can use the advanced scoring add-on.

    It will get you recent and relevant results.

    Vladmir Carvalho
    Participant
    4 months, 3 weeks ago #46483

    I’m getting some results using the advanced scoring add-on. Whenever I modify 2.3 Boosts, for it to work correctly on all products, do I need to reindex the products?

    Thanks.

    wpsolr
    Keymaster
    4 months, 3 weeks ago #46484

    No need to reindex. Unless you select “Copy to a text field” on a field, for instance on a taxonomy or custom field.

    Vladmir Carvalho
    Participant
    4 months, 3 weeks ago #46485

    I can find all products when I add words that are in the “title” and “excerpt” fields without activating Boosts. When I activate Boosts, most products only find words that are in the “title” or “excerpt” field, and not in both together. Is there a possibility to adjust this?

    Note1: I tried to activate Boost only with “content” and “title”, as well as the 3 “content”, “title” and “excerpt_t”. The problem persists.

    Note2: Indexing was done with the “Index post excerpt” option selected. I’m just using Default first sort as Most relevant.

    Note3: I am using “Advanced scoring”.

    wpsolr
    Keymaster
    4 months, 3 weeks ago #46486

    Multi_match with boosts and cross_fields could be your solution, but is not implemented.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.