set_indexed_fieldsv


Description:

public void set_indexed_fieldsv (ContactField fields, BookIndexType types, int n_fields)

Defines indexes for quick reference for the given given ContactFields in the addressbook.

The same ContactField may be specified multiple times to create multiple indexes with different characteristics. If an PREFIX index is created it will be used for BEGINS_WITH queries. An SUFFIX index will be constructed efficiently for suffix matching and will be used for ENDS_WITH queries. Similar an PHONE index will optimize EQUALS_PHONE_NUMBER searches.

Note:

The specified indexed fields must also be a part of the summary, any indexed fields specified that are not already a part of the summary will be ignored.

Parameters:

this

An SourceBackendSummarySetup

fields

The array of ContactFields to set indexes for

types

The array of BookIndexTypes defining what types of indexes to create

n_fields

The number elements in the passed fields, rule_types and rules arrays.