Added the passing of the query type (similarity or search) as a parameter to be displayed in the results