Pike v8.0 release 1738

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


Method set_metadata

void set_metadata(Standards.URI|string uri, void|string language, mapping(string:string) metadata)

Description

Set a metadata collection for a document.

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 metadata

A collection of metadata strings to be set for a document. The strings may be wide. The "body" metadata may be cut off at 64K.