Extracted from Pike v8.0 release 164 as of 2016-04-05.
   

Method Search.Database.Base()->allocate_field_id()


Method allocate_field_id

int allocate_field_id(string field)

Description

Allocate a field id.

Parameter field

The (possibly wide string) field name wanted.

Returns

An allocated numeric id, or -1 if the allocation failed.