Is this `apps` the name of the index? It changes depending on the settings and server. This shouldn't be hardcoded.