After upgrading the project to
Sitecore10.2 SOLR search result is different in order due to the
query _val_:__boost function.
I have investigated the issue and found out that in
Sitecore 9.0.2 our SOLR search query was:
..........AND (-_template:("083a4d2a38694013a9e2d18c05da70ae") *:*))
and in Sitecore 10.2 SOLR search query is:
..........AND (-_template:("083a4d2a38694013a9e2d18c05da70ae") *:*)) AND _val_:__boost
There is one more extra condition at last in the query i.e.
AND _val_:__boost. I have gone through the Sitecore documents on Search result boosting and found that
In Sitecore XP 10.0.0 or later, item-level boosting relies on index-time scoring factors that are indexed in the __boost field and combined with the query score using the query _val_:__boost function.
I have also tried the below approach one by one but did not get any success:
- Disabled the
- Removed the
- Removed all the locations included in
_val_:__boost function is affecting our search result order and I want to remove the function from our search query.