<!– search view –>
<search>
<filter string="String" name="filter_name" domain="[('fieldname', 'operator', value)]"/>
</search>
into the action of menu, you have to pass the context like
<record id="xml_id" model="ir.actions.act_window">
<field name="context">{'search_default_filter_name': 1}</field>
</record>