We are tagging our components with 1 keyword from a taxonomy tree, thereby indicating its "location" in the taxonomy tree. Now in the backend, given a taxonomy key, I want to query the broker for all components that either use that specific keyword, or a keyword lower in the taxonomy than the specified keyword. I tried to use a CategorizationCriteria, first retrieving all keywords below the given keyword, and then passing those into CategorizationCriteria, but this seems to only find components that have ALL specified keywords, while I need components that use ANY of those keywords. What would be the way to go about this?

  • 1
    I did it using a TaxonomyKeywordCriteria, specifying true to indicate to include keyword branches, and it seems to be working now. – Para Jaco Feb 3 '16 at 8:32
  • Go ahead and convert your comment to an answer so it can be marked as "correct" – Nickoli Roussakov Feb 3 '16 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.