是否可以在Solr Hybris中对非facet属性进行排序?
设想: 具有4个字段的产品(滚动启动日期1,滚动启动日期2,滚动末端日期1,滚动末端日期2)
在前端所有这些列都是分开的,并且基于用户单击,应对其进行排序。
如何实现。
Scenario:
Product having 4 fields (rolling start date1, rolling start date2, rolling end date1,rolling end date2)
At front end all these columns are separate and based on user click it should be sorted either asc/desc.
how it can be achieved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,这只是SAP Commerce的
Solrsort
对象的另一个可视化。开箱即用,将它们显示在下拉列表中,而不是此列表中,您可以将其连接到单击列标题以设置该排序。实现有很大程度上取决于您如何可视化表或使用的库。
对于排序本身,当您使用加速器店面时,单击列标题可以更改URL中的排序参数。例如
?sort =
spartacus项目的name-asc ,发送到后端API是类似的
In the end, this is just another visualisation of the
SolrSort
objects from SAP Commerce. Out of the box, they are displayed in a drop down listInstead of this list, you could attach this to a click on a column header to set that sort. The implementation depends a bit on how you visualize your table, or what library you use.
For the sort itself, when you are using the accelerator storefront, a click on the column header could change the sorting parameter in the url. For example
?sort=name-asc
For spartacus projects, it's something similar to send to the backend api's