The twofishes prefix index doesn't seem to be correctly built causing the autocomplete to not work untill 6 characters.
r => bestWoeTypes.contains(r.woeTypeOrThrow) never matches because r.woeTypeOrThrow is an enum while bestWoeTypes is a list of integers (enum ordinals)
|
val (woeMatches, woeMismatches) = records.partition(r => bestWoeTypes.contains(r.woeTypeOrThrow)) |
A fix would be to remove the map(_.getValue) mapping and keep the enum type.
The twofishes prefix index doesn't seem to be correctly built causing the autocomplete to not work untill 6 characters.
r => bestWoeTypes.contains(r.woeTypeOrThrow)never matches becauser.woeTypeOrThrowis an enum whilebestWoeTypesis a list of integers (enum ordinals)fsqio/src/jvm/io/fsq/twofishes/indexer/output/PrefixIndexer.scala
Line 122 in f5a5699
A fix would be to remove the
map(_.getValue)mapping and keep the enum type.fsqio/src/jvm/io/fsq/twofishes/indexer/output/PrefixIndexer.scala
Line 103 in f5a5699