[ https://issues.apache.org/jira/browse/FELIX-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690011#action_12690011 ]
Richard S. Hall edited comment on FELIX-1007 at 3/27/09 12:16 PM: ------------------------------------------------------------------ I am not sure what you mean that filtering resources with a given category doesn't work. OBR expects the category to be multi-valued. So, the property is an array of Strings. You should be able to do filter with an array value, just specify the value you want and if it is in the array, then it will match. I don't think we want to take the multi-valued category property and turn it into a single comma-delimited string value. I guess I am confused, since this set operator should be working on the array...assuming you are using the patched FilterImpl that supports set operators. was (Author: rickhall): I am not sure what you mean that filtering resources with a given category doesn't work. OBR expects the category to be multi-valued. So, the property is an array of Strings. You should be able to do filter with an array value, just specify the value you want and if it is in the array, then it will match. I don't think we want to take the multi-valued category property and turn it into a single comma-delimited string value. Especially if we end up including set operations in the OBR filter impl. > OBR search doesn't take 'categories' into account > ------------------------------------------------- > > Key: FELIX-1007 > URL: https://issues.apache.org/jira/browse/FELIX-1007 > Project: Felix > Issue Type: Bug > Components: Bundle Repository (OBR) > Reporter: Kristian Koehler > Attachments: categoriesQueryPatch_2009_03_27.txt > > > Hi > the RFC-0112 Bundle Repository document says: "The <category> element defines > a category. The purpose is to easy the discovery." and the description of the > method org.osgi.servicex.obr. RepositoryAdmin#discoverResources says "The > attributes that can be checked are: [...] category" but filtering resources > with a given category doesn't work. The following filter is "meaningless": > "(category:*>sampleCategory)" > Kristian -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.