Add terms stats api to keyword search