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
{{ message }}
Repository navigation
Unexpeted results when using the "$contains" operator #205
changed the title [-]Unexpeted results when using the "$contains" operator behaviour[/-][+]Unexpeted results when using the "$contains" operator[/+]on Aug 6, 2015
My hope in using $contains in the first place was that it would allow me to search for values that were at times arrays containing the search term, so hopefully the fix preserves this functionality. In other words, the example would return the following:
I believe @KimSchneider added the implementation for those ops, so ideally he might fix this but i'm not sure if he is monitoring this. If not, I will take a look at it over the weekend to see if I can better understand what he was trying to do. Your expectation of behavior sounds reasonable.
Activity
[-]Unexpeted results when using the "$contains" operator behaviour[/-][+]Unexpeted results when using the "$contains" operator[/+]pignion commentedon Aug 6, 2015
My hope in using $contains in the first place was that it would allow me to search for values that were at times arrays containing the search term, so hopefully the fix preserves this functionality. In other words, the example would return the following:
obeliskos commentedon Aug 6, 2015
I believe @KimSchneider added the implementation for those ops, so ideally he might fix this but i'm not sure if he is monitoring this. If not, I will take a look at it over the weekend to see if I can better understand what he was trying to do. Your expectation of behavior sounds reasonable.
KimSchneider commentedon Aug 7, 2015
I didn't change the default behaviour but that was a bug, you are right :)
#206
obeliskos commentedon Aug 7, 2015
Thanks! Looks great and I believe it performs exactly as mentioned.
techfort commentedon Aug 7, 2015
@pignion i'll wait for you to confirm that
$containsnow works as expected.pignion commentedon Aug 8, 2015
👍
Thanks @techfort and @KimSchneider, it works as exactly expected now.
techfort commentedon Aug 8, 2015
cool!