Problem activating the Boosts
- Vladmir CarvalhoParticipant4 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!
wpsolrKeymaster4 months, 4 weeks ago #46464The 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 CarvalhoParticipant4 months, 3 weeks ago #46477I 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.
Vladmir CarvalhoParticipant4 months, 3 weeks ago #46479WPSOLR PRO 24.0
Search engine Elasticsearch (Keyword search)
Hosting service Elastic
—————————————
Versão do WooCommerce: 9.3.3
Versão do WordPress: 6.6.2Vladmir CarvalhoParticipant4 months, 3 weeks ago #46481without 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?
wpsolrKeymaster4 months, 3 weeks ago #46482With Elasticsearch, you can use the advanced scoring add-on.
It will get you recent and relevant results.
Vladmir CarvalhoParticipant4 months, 3 weeks ago #46483I’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.
Vladmir CarvalhoParticipant4 months, 3 weeks ago #46485I 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”.
wpsolrKeymaster4 months, 3 weeks ago #46486Multi_match with boosts and cross_fields could be your solution, but is not implemented.
You must be logged in to reply to this topic.