32.10. slapi_mr_indexer_create()
This function calls the indexer factory function for the plug-in responsible for handing a specified matching rule. The matching rule is identified by the OID in the SLAPI_PLUGIN_MR_OID parameter.
SLAPI_PLUGIN_MR_INDEX_FN parameter is set to an indexer function.
SLAPI_PLUGIN_MR_OIDshould contain the OID of the matching rule that you want used for indexing or sorting.SLAPI_PLUGIN_MR_TYPEshould contain the attribute type that you want used for indexing or sorting.SLAPI_PLUGIN_MR_USAGEshould specify if the indexer will be used for indexing (SLAPI_PLUGIN_MR_USAGE_INDEX) or for sorting (SLAPI_PLUGIN_MR_USAGE_SORT).
SLAPI_PLUGIN_MR_OIDshould contain the official OID of the matching rule that you want used for indexing or sorting.SLAPI_PLUGIN_MR_INDEX_FN, if specified, contains an indexer pointer function. The function is responsible for indexing or sorting, based on the matching rule OID or attribute type. The values to index or sort are provided in theslapi_pblockfunction using theSLAPI_PLUGIN_MR_VALUESparameter. The values are stored in a NULL-terminatedbervalarray.SLAPI_PLUGIN_MR_INDEX_SV_FN, if specified, contains an indexer pointer function. The function is responsible for indexing or sorting, based on the matching rule OID or attribute type. The values to index or sort are provided in theslapi_pblock_get()function using theSLAPI_PLUGIN_MR_VALUESparameter. The values are stored in a NULL-terminatedSlapi_Valuearray.SLAPI_PLUGIN_OBJECTshould contain any information that you want passed to the indexer function.SLAPI_PLUGIN_DESTROY_FNshould specify the name of the function responsible for freeing any memory allocated by this indexer factory function. For example, memory allocated for a structure that you pass to the indexer function usingSLAPI_PLUGIN_OBJECT.
#include "slapi-plugin.h" int slapi_mr_indexer_create (Slapi_PBlock *opb);
This function takes the following parameter:
|
pb
| Parameter block containing information about the matching rule and attribute type to be used in indexing or sorting. |
This function returns the result code returned by the indexer factory function.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.