Adjust CachedIndex to new structure

Issues:
  - no explicit merge/apply
  - empty occurrences in result possible