Added the ability to override the getIndex(Class<?> type) method so that subclasses can implement their own custom Class->Index mappings.
Added test coverage for SearchResult
Added test coverage for SearchResult