Do we definitely want them to all have the same matchGoodness?  It seems potentially valuable for example to rank them by what percentage of the string's length is covered by this prefix (e.g. with the query "str", the result "str" should rank above "strfoobarbaz").

But I guess it's hard to give them varying scores while still guaranteeing that they will all be ranked higher than any possible non-prefix match...