search: fix filtered output format

* Addresses issue with research and export that not accept the "ot"
  filter argument. (closes #2292)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
49: D103 Docstring missing
162: D103 Docstring missing
182: D103 Docstring missing
188: D103 Docstring missing
200: D103 Docstring missing
215: D103 Docstring missing
229: D103 Docstring missing
239: D103 Docstring missing
253: D103 Docstring missing