I'm using Sitecore 9.3 and Solr 8.1.1, I have this simple query
q=itemName_t:(*test*)^80&fl=itemName_t,_templateID,score&fq=_indexname:(custom_index)&wt=xml
And these are the results:
- item1 , templateID : template1ID, score : 80
- item2 , templateID : template1ID, score : 80
- item3 , templateID : template2ID, score : 80
- item4 , templateID : template2ID, score : 80
- item5 , tempalteID : tempalte3ID, score : 80
The results are mix of multiple templates, I wanted to boost only two templates types which are template1 and template2, So I wrote this query:
q=(_template:(**template1ID**)^60 OR _template:(**template2ID**)^60) AND itemName_t:(*test*)^80&fl=itemName_t,_templateID,score&fq=_indexname:(custom_index)&wt=xml
The results became like this:
- item3 , templateID : template2ID, score : 215
- item4 , templateID : template2ID, score : 215
- item1 , templateID : template1ID, score : 90
- item2 , templateID : template1ID, score : 90
- item5 , tempalteID : tempalte3ID, score : 80
Although I boosted the two templates with the same value, template2 was boosted more higher than template1.
I enabled the solr explanation, but couldn't understand it.
test
show up in any of the result item names? 3. Can you update your question to include the explain results from Solr?