Update the number of results
Display the right document type