cancel
Showing results for 
Search instead for 
Did you mean: 

How to build Pagination flexible search query ?

former_member1190134
Participant
0 Kudos
 

Accepted Solutions (0)

Answers (2)

Answers (2)

VinayKumarS
Active Contributor
0 Kudos

Hi Nagarjuna,

As Sumit mentioned you can check the method for more info.

By default hybris OOB come up with this paginzation. we dont need to do any customization. If you want to change the page size and all for mobile and desktop then go to your storefront project.properties. You will find below entries. Check those and modify according to your need.

 ###########
 # Search results page size configuration per store:
 # Set to zero to load the default page size
 storefront.search.pageSize.Desktop=0
 # setting for mobile
 storefront.search.pageSize.Mobile=20
 # site specific settings
 #storefront.search.pageSize.apparel-uk.Mobile=20
 #storefront.search.pageSize.apparel-de.Mobile=20
 #storefront.search.pageSize.electronics.Mobile=20
former_member634058
Active Participant
0 Kudos

For this you need to return SearchPageData(YourType)

You have to call getPagedFlexibleSearchService().search(sortQueries, sortCode, new HashMap(), pageableData) to get pageabledata.

Please check DefaultPagedB2BCustomerDao.java for reference.