DEVSUPPORT-1295 Fix advanced search query to supply correct number to pagination and result message