Thursday, January 21, 2021

Sitecore 10 - SXA result items sequence got randomly changed - Review and Fix.

Recently, I was working on implementing a SXA result component, the scenario is the items are sort based on the document publishe date,

The issue was the latest published items should always comes on the top but whenever we do the re indexing the seqeuence got change.

After investigating it further we found that's internally Solr fetch the document based on the indexed and change the sequence,


Solution, in that case we provided the second level sorting. it can be done as comma separated on the SXA sort field.

No comments:

Post a Comment