don't override the `index` variable from the function definition

The `index` variable was set to `amo_stats` after the first loop iteration, and then didn't
get updated correctly to `amo` for the InappPayment model.

The test then failed on a term filter for 'mkt-search' as this was analyzed and split into 'mkt' and 'search' tokens.