How to write the corresponding layout xml file in Magento 2?
<?xml version="1.0"?>
<layout version="0.1.0">
<catalogsearch_result_index>
<reference name="catalogsearch.leftnav">
<action method="setTemplate">
<setTemplate>tagalys_search/filter.phtml</setTemplate>
</action>
</reference>
<reference name="content">
<reference type="catalogsearch/result" name="search.result">
<reference name="search_result_list">
<reference name="product_list_toolbar">
<action method="setTemplate">
<template>tagalys_toolbar/toolbar.phtml</template>
</action>
</reference>
</reference>
</reference>
</reference>
</catalogsearch_result_index>