Pike v8.1 release 6

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


Method insert_words

void insert_words(Standards.URI|string uri, void|string language, string field, array(string) words)

Description

Index words into the database. The data may be buffered until the next sync call.

Parameter uri

The URI of the resource being indexed.

Parameter language

A two letter ISO-639-1 language code, or 0 if the document is language neutral.

Parameter field

The field name for the words being indexed.

Parameter words

The words being indexed. Possibly in wide-string format. (Not UTF8 encoded.)