doc: use templates for search docstrings

This enables us to list search fields, includes
and possibly other things later on in the docstring.
The docstring can be accessed by sphinx,
but also with the internal python help() and ipython.

Signed-off-by: Johannes Dewender <github@JonnyJD.net>