Requests for "_url" and "_lastestversion" virtual fields affect performance


Description

Executing search queries might result in the increased resource consumption and increased response time due to redundant requests to Solr. Messages similar to the following can be found in the logs:

INFO Solr Query - ?q=__solr_norm_field_name_s:(_lastestversion)&rows=1&fq=_template:(455a3e98a6274b408035e683a0331ac7)&fq=_indexname:(sitecore_web_index)&wt=xml
INFO Solr Query - ?q=__solr_norm_field_name_s:(_url)&rows=1&fq=_template:(455a3e98a6274b408035e683a0331ac7)&fq=_indexname:(sitecore_web_index)&wt=xml

In Sitecore XP 9.0 and earlier versions, the log entries are similar to:

INFO  Solr Query - ?q=_name:(_lastestversion)&rows=0&fq=_templatename:("Template field")&fq=_indexname:(sitecore_web_index)&wt=xml
INFO  Solr Query - ?q=_name:(_lastestversion)&rows=1000000&fq=_templatename:("Template field")&fq=_indexname:(sitecore_web_index)&wt=xml
INFO  Solr Query - ?q=_name:(_url)&rows=0&fq=_templatename:("Template field")&fq=_indexname:(sitecore_web_index)&wt=xml
INFO  Solr Query - ?q=_name:(_url)&rows=1000000&fq=_templatename:("Template field")&fq=_indexname:(sitecore_web_index)&wt=xml

Solution

To resolve the issue, consider one of the following options: