Fixed bug where require('search-index')(config) returned undefined
Tests for configurability
Merge pull request #47 from timosaikkonen/issues/21

Issues/21