fix return for empty array

Merged Mathias Goebel requested to merge bugfix/#135-return-type-error-index-search into develop

this function is enabled for queries larger than one character. this MR sets the correct return (empty array) if a single char is given.

closes #135 (closed)

Merge request reports