-
Notifications
You must be signed in to change notification settings - Fork 46
Description
'q' cannot be part of a forwarded request (only applicable for Query Entities).
Sama same with 'attrs' and 'pick' and a few more (NEC has the complete list).
Imagine for example that entity 'urn:entities:E1' is split over 3 different brokers (nothing in local),
and the attribute 'speed' is only present in one of the 3 external brokers.
A query comes in and the broker finds 3 matching registrations.
If 'q=speed>10' is added to the forwarded queries, then it's not a match for two of the brokers.
Now, if the entire entity was asked for, then all those attributes in the other two brokers are ignored.
So, the forwarded request cannot include the 'q' parameter.
That kind of entity selection must be done afterwards, once the complete entity has been compiled.