| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
Search
Search.Database
Search.Database.Base

# 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.