For examples of finding objects by classification, see JAXRSearchByClassification.java and JAXRSearchByCountryClassification.java in the directory INSTALL/registry-samples/search-classification/src. The first example searches for objects that use the canonical classification scheme SubjectRole, while the other example searches for organizations that use a geographical classification.
The program JAXRSearchByCountryClassification.java uses the OR_ALL_KEYS field of FindQualifier to find organizations that use either of two geographical classifications. By default, finder methods look for objects that have all the specified classifications.
To obtain results from the JAXRSearchByCountryClassification example, you must publish an object that uses the specified classifications. Run the example in Adding Classifications: Example first.
Go to the directory INSTALL/registry-samples/search-classification.
Type either of the following commands:
Ant-base/ant search-class Ant-base/ant search-geo |
The search-class target typically returns one result. The search-geo target returns results if you have run the run target in Adding Classifications: Example.