ECMS-6444 : fix pagination problems in search

these changes of import should be reverted.