HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3332, November 2013)

If a search request contains multiple attributes, the directory consults multiple indexes,
then combines the resulting lists of candidate entries.
If there is an index for the attribute, the directory takes the candidate matches from the
index files in the form of a series of entry ID numbers.
3. The directory uses the returned entry ID numbers to read the corresponding entries from the
id2entry.db4 file. The Directory Server then examines each of the candidate entries to see
if any match the search criteria. The directory returns matching entries to the client as each is
found.
The directory continues until either it has examined all candidate entries or it reaches the limit
set in one of the following attributes:
nsslapd-sizelimit, which specifies the maximum number of entries to return from
a search operation. If this limit is reached, the directory returns any entries it has located
that match the search request, as well as an exceeded size limit error.
nsslapd-timelimit, which specifies the maximum number of seconds allocated for
a search request. If this limit is reached, the directory returns any entries it has located
that match the search request, as well as an exceeded time limit error.
nsslapd-lookthroughlimit, which specifies the maximum number of entries that
the directory will check when examining candidate entries in response to a search request.
nsslapd-idlistscanlimit, which specifies the maximum number of entries in an
ID list before the list is considered to equal the entire database.
See HP-UX Directory Server configuration, command, and file reference for further information
about these attributes.
Approximate searches
In addition, the directory uses a variation of the metaphone phonetic algorithm to perform searches
on an approximate index. Each value is treated as a sequence of words, and a phonetic code is
generated for each word.
NOTE:
The metaphone phonetic algorithm in Directory Server supports only US-ASCII letters. Therefore,
use approximate indexing only with English values.
Values entered on an approximate search are similarly translated into a sequence of phonetic
codes. An entry is considered to match a query if both of the following are true:
All the query string codes match the codes generated in the entry string.
All the query string codes are in the same order as the entry string codes.
Match commentsQuery string (phonetic code)Name in the directory
(phonetic code)
Matches. Codes are specified in the correct order.Alice Sarette (ALS SRT)Alice B Sarette (ALS B SRT)
Matches. Codes are specified in the correct order,
despite the misspelling of Sarette.
Alice Sarrette (ALS SRT)
Matches. The generated code exists in the original
name, despite the misspelling of Sarette.
Surette (SRT)
No match. The code BR0 does not exist in the
original name.
Sarette (BR0 SRT)
No match. The codes are not specified in the
correct order.
Sarette, Alice (SRT ALS)
452 Managing Indexes