Developer forum

Forum » Rapido » Feature Checking - Back end Product sort feature

Feature Checking - Back end Product sort feature

Tan Pang Lin Dynamicweb Employee
Tan Pang Lin
Reply

Refer to this url,  http://ss.dynamicwebapac.com/files/images/fx/backendprodsortfeature.mp4

My customer had less than 100 products in the portal.   lately went LIVE with standard Rapido.

They noted that there is no sort function in the front end.  and they discovered there is this sort feature in the back end product list page.  so they use that to sort and expect the front end reflect the same sort sequence but see nothing happen.

They ask me what is that feature for and I could not answer.   I doubt it was meant for back end sorting as it will not be feasibile to do manual sort if a cusotmer had a lot more products.

I check the doc website and could not get an answer.   

Please advise what is the feature of that for.

Thanks

Pang Lin


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Tan

The sorting in the backend can be used in the frontend also. Usually we do not use that much though - so the default sorting of the product list in Rapido of the search is set to be sorted by the search score - so that the most relevant product is on top. See dump 1

You can easily change that though - go to settings, repositories, Products, Products Query and change sort to sort by the sort field. See dump 2

Rapido 2 will have sorting in the frontend as well.

Hope this helps.

BR Nicolai

Capture.PNG Capture1.PNG
Votes for this answer: 1
 
Tan Pang Lin Dynamicweb Employee
Tan Pang Lin
Reply

Thanks Nicolai.

I had checked with the Customer,  they prefer to sort as per the backend as they had less than 100 products.   Per group,  the most 10 products.   

Hence,  I tried change the setting as per dump 2,  rebuild the index but did not see the front end get sorted as expected.

 

Please advise.

Thanks

Pang Lin

 
Nicolai Pedersen
Reply

Hi Pang Lin

When I check your solution, it seems like it sorts correctly. See dump 1 & 2 as examples.

Could you provide screendumps on where it does not do that?

BR Nicolai

Capture.PNG Capture1.PNG
 
Tan Pang Lin Dynamicweb Employee
Tan Pang Lin
Reply

Dear Nicolai

the page that it does not work is

http://ss.dynamicwebapac.com/products/demo,  it had variants product which is same as what Customer is having.

Thanks

Pang Lin

 

 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Pang Lin

The products in that category is member of more groups - none of which is primary. The problem is that each product is sorted 2-3 different ways in different groups. So you sort by the primary group sort field. If no group is marked as primary, that would make a random one (the first one). See dump.

If you have products that are in more that one group with different sorting, it is not possible to sort them based on the group/sort combination using the index. Using the index, what is done is a search for products where just one expression is the group. And the index cannot "understand" the group structure. Because you can basically make a search for products in group1 or group2. And sorting by sort makes no sense in that context - a product could be in both groups with sort 1 and 10.

Hope this clarifies - basically - if you have products in more groups, and you want to sort them differently in each group and have them shown using that sort, it is currently not possible using the index.

BR Nicolai

 

Capture.PNG
Votes for this answer: 1
 
Tan Pang Lin Dynamicweb Employee
Tan Pang Lin
Reply

Noted with Thanks Nicolai.

I will inform the Customer the same.  

I hope that the front end sorting will be availble soon.

Thanks

Pang Lin

 
Tan Pang Lin Dynamicweb Employee
Tan Pang Lin
Reply

Hi

May I know how to test search by score?

I had search the same product, 10043,  many times using the search bar.   But I did not see the product moving to the top, http://ss.dynamicwebapac.com/products/demo, 

Is there a way to view the internal value of the score of a product?

 

Thanks

Pang Lin

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Pang Lin

The product does not have a score - the search finds documents in the index, and the search result items in the result gets scores. And it does not change the more you search - the more relevant the search is, the higher the score. Scoring does not work for fields using the "contains" operator. If you use the Eqauls operator, scoring starts to work really well. If you want to understand scoring in Lucene in depth, you can Google for Lucene Scoring.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum