If I understand correctly, you are trying to add search capabilities in a Navigation Layout. As search will require the use of a data container (like a DataView), you will get errors when placing a DataView in a Layout. The way around this is to create a snippet with the dataview and then place the snippet in the Navigation Layout.
With this construct, you will need to have a microflow source for the DataView.