...
This toolkit element allows you to use regex or javascript to set the document metadata fields (eg title, description, publishedDate).
Table of Contents |
---|
Format
TODO convert to JSON
Code Block |
---|
{ "display": string, "docMetadata": { "title":string,// The string expression or $SCRIPT(...) specifying the document title "description":string,// The string expression or $SCRIPT(...) specifying the document description "publishedDate":string,// The string expression or $SCRIPT(...) specifying the document publishedDate "fullText":string,// The string expression or $SCRIPT(...) specifying the document fullText "displayUrl":string,//The string expression or $SCRIPT(...) specifying the document displayUrl "appendTagsToDocs":Boolean,// if true (*NOT* default) source tags are appended to the document "geotag" {config_param_name"}//Specify a document level geo-tag } |
...
Parameter | Description |
---|---|
title | The string expression or $SCRIPT(...) |
description | Ibid. |
publishedDate | Ibid. |
fullText | Ibid. |
displayUrl | "displayUrl" sets the corresponding document JSON field. It is guaranteed not to be used by the Infinit.e platform. It is therefore useful for linking documents to external content. For reference, the way that it is used in the Infinit.e GUI is as follows:
|
appendTagsToDocs | If true (*NOT* default) source tags are appended to the document. |
geoTag | using geo tag the following is possible
See example below. |
...
Examples
Setting Metadata Values
When document metadata is extracted from a source (via the File, Database, or other technique), each field extracted is captured in the Feed.metadata object. Using document metadata, data stored in the Metadata object can be access using the $ operator to signify that we are attempting to retrieve data from a field in our document.
...