If backtracking occurs through the call of recorda/2 the associated Value is not removed from the indexed database.
Success:
recorda(a(compound,term),value1).
recorda([a,compound,term],value2).
[eclipse]: recorda(whiskey,jameson),
> recorda(whiskey,bushmills),
> recorda(whiskey,glenlivet).
yes.
[eclipse]: recorded(whiskey,Value).
Value = glenlivet More (;)
Value = bushmills More (;)
Value = jameson More (;)
no (more) solution.
Error:
recorda(Key, anything). (Error 4)
recorda("key",anything). (Error 5)