avoinministerio/avoinministerio — pull request #184 by jyrkive (2012-07-04 12:51:52+00:00)
Title: Use separate search indexes in development, staging and production

Currently both the Searchify API URL and the index name are hardcoded into the application. As a result, all environments (development, staging and production) use the same index even though their databases are different.

This commit allows us to specify the index name with an environment variable called Index_Name. If the environment variable is not specified, an index called Development is used.

Note that this changes the default index name from BasicData to Development. As a result, search will not work in development environment before creating an index called Development.