Add hits_by_query method

Change-Id: If50ce091f9dac5813d4c3de0212dbda5f77784b8
Co-Authored-By: Sean Dague <sdague@linux.vnet.ibm.com>
Merge "Add hits_by_query method"