2

I have configured DXA(1.7) Search Module with AWS cloud search in our project. Now my question is "does it support sorting by default?"

I have tried with below url, It is neither breaking my view nor showing the expected result -

http://dev.stg.com/en/search.html?q=coffee&sort=date

Please confirm.

1
  • BTW: might be nicer to use an extensionless URL (?) Commented Apr 6, 2017 at 6:34

1 Answer 1

2

Your sort parameter will get passed to AWS CloudSearch, but note that AWS CloudSearch poses restrictions on what and how you can sort. See http://docs.aws.amazon.com/cloudsearch/latest/developerguide/sorting-results.html

In particular: "You use the sort parameter to specify the field or expression you want to use to sort the results. You must explicitly specify the sort direction along with the name of the field or expression. For example, sort=year asc or sort=year desc"

1
  • An up vote and accepting the answer counts as "thanks" on StackExchange sites. ;-) Commented May 11, 2017 at 19:51

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.