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. Commented Aug 3, 2023 at 1:41

2 Answers 2

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.

0

Try the same query directly within your solr first, if it's not giving expected results then you may proceed with re-indexing.

If it's working fine with your solr, you may have issue in your rendering logic in code.

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.