-
|
Hello Joomla team, I'm using the Joomla 5 Web Services REST API to query articles by multiple tags. For example: /api/index.php/v1/content/articles?filter[tag]=57,5(docs: https://slides.woluweb.be/api/#multivalue) However, I would like to retrieve only the articles that contain all the specified tags (logical AND). I've tried several variations, such as: filter[tags]=57,209
filter[tags][]=57&filter[tags.operator]=ANDbut none seem to apply the AND logic. Could you please clarify: Does the Joomla 5 API currently support AND filtering for multiple tags? If not, is there any supported way or planned update to allow that functionality? Where can I find the documentation or code reference for the operators used in filters (like filter[tags])? Thank you for your help in understanding how tag filters are processed in Joomla’s core API. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You are right at this time the query use the joomla-cms/administrator/components/com_content/src/Model/ArticlesModel.php Lines 462 to 492 in a3baa9a so right now we don't support logical AND imho it should be a good new feature |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
You are right at this time the query use the
IN()operator so logical OR, you can see the same behavior in Content > Articles in Joomla administrator seejoomla-cms/administrator/components/com_content/src/Model/ArticlesModel.php
Lines 462 to 492 in a3baa9a