Implementing Metadata Search Handler

The implementation and usage of metadata search handler is identical to metadata browse handler, with the exception of this class returning a filtered list of metadata objects back to the caller depending on the passed in search criteria. It can return the operations as well as categories depending on the adapter implementation. Many adapter implementations use the regular expressions to define the format of the input search criteria.

Here are steps on providing metadata search functionality within an adapter.

Step 1. Implement Search method within the adapter implementation of IMetadataSearchHandler interface

public MetadataRetrievalNode[] Search(string absoluteName, string SearchCriteria, int maxChildNodes, TimeSpan timeout)

{

// based on the search criteria create and return a hierarchy of MetadataRetrievalNode[] objects

}

Step 2. Test the adapter metadata search functionality

Testing the search functionality is similar to testing the browse function. See the post "Implementing Metadata Browse Handler" for more information.

More on this topic later!