Add index and collection criteria for resource types.

Funded by: ILO Promote