[bugfix] new range index: check if index is case sensitive.

If index is case insensitive, query string needs to be lowercased or nothing is found.