I'm trying to set up "best bets" in a Sitecore 9.3 environment.
I set up the Solr Query Elevation Component following the instructions at this URL: https://solr.apache.org/guide/6_6/the-query-elevation-component.html
It seems to work in Solr.
However, Sitecore won't honor that setting. When I search for a term I know we have results ("product X"), it doesn't appear at the top of the list like it should. Right now it's the 10th result. Based on what I set in the elevate.xml file, it should be the first result for the query "product X."
Is this component even supported? I don't see anything explicitly spelled out either way, but if anyone has successfully implemented it, how did you do it?
Do Sitecore configs need to change? How about the search code itself?
Elevate.xml file
<elevate>
<query text="my query">
<doc id="sitecore://master/{top result guid}?lang=en&ampver=1&ampndx=myindex_boosted" /> <!-- Product page -->
<doc id="sitecore://master/{second result guid}?lang=en&ampver=1&ampndx=myindex_boosted" /> <!-- Product 2 -->
</query>
</elevate>
Search log
8008 08:30:35 INFO Warming and Caching your search indexes
8008 08:30:35 INFO /******* Warming Queries ********/
8008 08:30:35 INFO /*************************/
25112 08:31:13 INFO Solr Query - ?q=((computedcontents_t:(*product*) OR _content:(*product*)) AND (computedcontents_t:(*name*) OR _content:(*name*)))&start=0&rows=10&fl=*,score&fq=(((-hidefromsearch_b:(True) *:*) AND (-notinsearch_b:(True) *:*)) AND _language:(en))&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_lastestversion)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_url)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=((computedcontents_t:(*product*) OR _content:(*product*)) AND (computedcontents_t:(*name*) OR _content:(*name*)))&start=0&rows=5&fl=*,score&fq=((((computedtitle_t:("product name\*") AND _fullpath:(\/sitecore/content/product/home/products*)) AND (-hidefromsearch_b:(True) *:*)) AND (-notinsearch_b:(True) *:*)) AND _language:(en))&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_lastestversion)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_url)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=((computedcontents_t:(*product*) OR _content:(*product*)) AND (computedcontents_t:(*name*) OR _content:(*name*)))&start=0&rows=1&fl=*,score&fq=((((computedtitle_t:("\*product name\*") AND _fullpath:(\/sitecore/content/product/home/trial*)) AND (-hidefromsearch_b:(True) *:*)) AND (-notinsearch_b:(True) *:*)) AND _language:(en))&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_lastestversion)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml
25112 08:31:14 INFO Solr Query - ?q=__solr_norm_field_name_t:(_url)&start=0&rows=1&fq=_template:({template ID})&fq=_indexname:(my_index_index_boosted)&wt=xml