You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ will evaluate the function for each document in the collection instead of for the context document set at once, so it returns the keys multiple times for each document instead of once for the collection
It might have something to do with the expression dependencies being incorrectly set at one point down the stack (the evaluation path leading to the incorrect results seems to start in PathExpr.eval() when the expression's dependencies are determined) but as I have no idea what I'm actually talking about I'll leave it at that for the time being...
There'll be a pull request with a test coming in shortly
The text was updated successfully, but these errors were encountered:
olvidalo
changed the title
ft:index-keys with dynamic context only works correctly when wrapped inside dynamic function call
range:index-keys-for-field with dynamic context only works correctly when wrapped inside dynamic function call
Jan 15, 2017
✅ returns all keys for
some-field
for the statically known documents.❌ will evaluate the function for each document in the collection instead of for the context document set at once, so it returns the keys multiple times for each document instead of once for the collection
✅ however, wrapping it inside a dynamic function will make it work
✅ also works
❌ does not work
It might have something to do with the expression dependencies being incorrectly set at one point down the stack (the evaluation path leading to the incorrect results seems to start in
PathExpr.eval()
when the expression's dependencies are determined) but as I have no idea what I'm actually talking about I'll leave it at that for the time being...There'll be a pull request with a test coming in shortly
The text was updated successfully, but these errors were encountered: