Set a pointer in the parameter block to the indexer factory function for a matching rule.
#include "slapi-plugin.h" int slapi_mr_indexer_create(Slapi_PBlock * pb);
This function takes the following parameters:
Parameter block containing the matching rule object identifier affected to SLAPI_PLUGIN_MR_OID
This function enables plug-ins to call matching rule indexer factory functions. If successful, the function sets SLAPI_PLUGIN_MR_INDEXER_CREATE_FN in pb to point to the indexer factory function.
This function returns 0 if successful. It returns LDAP_UNAVAILABLE_CRITICAL_EXTENSION if no indexer factory function is available for the matching rule. It returns -1 if something goes horribly wrong getting or setting the parameter block arguments.