only show pharma in compound index if there are available records