I’d recommend looking at an existing report, make a copy of it, and edit the source of it to see how it is done.
Related: How Do I View The Entire Relevance Query Response?