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
Maybe I am just being an idiot, but I cannot seem to get the $and to work in the query. I imagine this is less of a bug a more of I don't know the right syntax but I have tried a few.
Calling this endpoint: http://localhost:3030/search/tracks?tags.name.raw[$and]=rock
I've also tried: http://localhost:3030/search/tracks?$and[tags.name.raw]=rock But get an error about it not being an array.
Not sure what I am doing wrong but appreciate your help.
Expected behavior
This should be an anded filter term.
I am console.logging from the hooks, and the server service call gives me this in the hook under hook.params.query: Hook query { '$and': { 'tags.name.raw': 'rock' } }
But the rest call is giving this: Hook params { query: { 'tags.name.raw': { '$and': 'rock' } }
Actual behavior
It is not being run in the query at all. Added some debug and the $and filter in parseQuery is not being hit at all.
It does however work if I run it from the server as this:
Steps to reproduce
Maybe I am just being an idiot, but I cannot seem to get the $and to work in the query. I imagine this is less of a bug a more of I don't know the right syntax but I have tried a few.
Calling this endpoint:
http://localhost:3030/search/tracks?tags.name.raw[$and]=rock
I've also tried:
http://localhost:3030/search/tracks?$and[tags.name.raw]=rock
But get an error about it not being an array.Not sure what I am doing wrong but appreciate your help.
Expected behavior
This should be an anded filter term.
I am console.logging from the hooks, and the server service call gives me this in the hook under
hook.params.query
:Hook query { '$and': { 'tags.name.raw': 'rock' } }
But the rest call is giving this:
Hook params { query: { 'tags.name.raw': { '$and': 'rock' } }
Actual behavior
It is not being run in the query at all. Added some debug and the $and filter in parseQuery is not being hit at all.
It does however work if I run it from the server as this:
System configuration
Latest version of feathers-elasticsearch.
The text was updated successfully, but these errors were encountered: