Open dag opened 11 years ago
If @Taneb could take a looksie that'd be great!
The t -> [a]
instance seems to work though:
>>> state^..wordData.withAny (toListOf folded . fetch AffixK) ["dor"].folded.word'
["donri"]
Although I'm not sure about withAll
for that instance:
>>> state^.wordData.withAll (toListOf folded . fetch AffixK) ["dor"] & count
5911
Shoudn't withAll
and withAny
be equivalent when given a singleton list?
They should be, yes.
It looks like the inverted indices are correctly set up for singleton tables, but they're empty for tables with more than one row. It also seems that withAny
and withAll
work correctly for singleton tables. This suggests to me that the problem likely is in either unsafeInsert
or deleteCollisions
(or both).
I'd like to investigate this issue but there is not enough context given in the report to reproduce the result myself. I know it's been quite a while since this issue was opened but if the reporter still has the code that produced this issue would they mind posting a more complete test case?