Writing The Indexer Factory Function - Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual

Table of Contents

Advertisement

Writing the Indexer Factory Function

The indexer factory function takes a single
should be thread-safe. The server may call this function concurrently.
The indexer factory function should do the following:
1.
whether or not that OID is supported by your plug-in.
If the OID is not supported, you need to return the result code
Get the value of the
2.
should have one of the following values:
If the value is
function to sort search results. See "Handling Sorting by Matching Rules"
on page 142 for more information.
If the value is
function to index an entry.
You can use this information to set different information in the indexer object
or to set a different indexer function, based on whether the function is being
called to index or to sort.
3.
Create an indexer object containing any information that you want passed to
4.
the indexer function.
5.
matching rule (if the value of that parameter is not the official OID).
Set the
Set the
SLAPI_PLUGIN_MR_INDEX_FN
(See "Writing the Indexer Function" on page 133.)
SLAPI_PLUGIN_MR_USAGE
SLAPI_PLUGIN_MR_USAGE_SORT
SLAPI_PLUGIN_MR_USAGE_INDEX
parameter to the official OID of the
parameter to the indexer object.
Indexing Based on Matching Rules
argument. This function
parameter and determine
.
parameter. This parameter
, the server is calling your
, the server is calling your
parameter to the indexer function.
Chapter 11
Writing Matching Rule Plug-Ins
131

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents