Complete Contents
Getting Started
Chapter 1 Understanding Server Plug-Ins
Chapter 2 Writing and Compiling Plug-Ins
Chapter 3 Calling the Front-End API Functions
Chapter 4 Quick Start
Chapter 5 Writing Database Plug-Ins
Chapter 6 Writing Pre/Post-Operation Plug-Ins
Chapter 7 Defining Functions for LDAP Operations
Chapter 8 Defining Functions for Database Operations
Chapter 9 Defining Functions for Authentication
Chapter 10 Writing Entry Store/Fetch Plug-Ins
Chapter 11 Writing Extended Operation Plug-Ins
Chapter 12 Writing Matching Rule Plug-Ins
Chapter 13 Data Type and Structure Reference
Chapter 14 Function Reference
Chapter 15 Parameter Reference
Glossary
Previous Next Contents Bookshelf Function List



 slapi_mr_indexer_create()
Calls the indexer factory function for the plug-in responsible for a specified matching rule.

Syntax

#include "slapi-plugin.h"
int slapi_mr_indexer_create (Slapi_PBlock *opb);

Parameters

The function has the following parameters:
pb

Parameter block containing information about the matching rule and attribute type to be used in indexing or sorting.

Returns. The result code returned by the indexer factory function.

Description. 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.

If no plug-ins are associated with this matching rule, the function calls the indexer factory function for each matching rule plug-in until the SLAPI_PLUGIN_MR_INDEX_FN parameter is set to an indexer function.

Before calling this function, make sure that the parameter block pb contains the information needed by the indexer factory function. You can pass information to the indexer factory function by using the following parameters:

The indexer factory function should set the following parameters:

For more information on filter index functions and indexer functions, see Chapter  12, "Writing Matching Rule Plug-Ins".

Example

[To be added]

See Also

 

© Copyright 1998 Netscape Communications Corporation