add support for terms filter

related to 32f5977ac39df3df832b6b6b56152261a6ad7cd9