[api] fix product indexing
[api] basic tracking of CPE ids in products