You may try this.
<p:commandButton id="search" value="Search"
action="#{myBean.search}"
oncomplete="downloadWV.jq.show()"/>
<p:commandButton id="download"
widgetVar="downloadWV"
value="Download"
ajax="false"
onclick="PrimeFaces.monitorDownload(start, stop)"
style="display:none">
<p:fileDownload value="#{myBean.file}" />
</p:commandButton>