1

i just create new computed field for sorting search result alphabetical ascending, but when i put page size for result as example 8 it displays only 3 in page load, while if i used any other field in sorting it's working fine , i don't know why! enter image description here

1
  • Check the Solr query for the search log and compare it with the working one. Also, try to rebuild the index and validate records in Solr Abmin UI. Aug 3, 2023 at 1:41

1 Answer 1

0

The most common reason for an error like that is the fact that your index is not in sync with your database.

In your index there are items which are not in database anymore - Solr returns a set of documents but when SXA tries to map them to Sitecore items, they are not in database, so the results displayed on your website show less items then requested.

Solution? If that's a reason of your issues, simply rebuild the index to make sure it's in sync with what is in your database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.