How do I enable infinite scroll in a Search results or a product listing page from Tagalys?

For Magento 1.X (Search): 

Duplicate 

app/design/frontend/base/default/template/tagalys/search.phtml

inside your theme and replace  

$('#tagalys-namespace').tagalys_search_results();

with 

$('#tagalys-namespace').tagalys_search_results({pagination_mode: 'infinite_scroll'});