String Metadata - Fluid Topics - 3.7 - Technical Notes

Develop Connectors with the Fluid Topics API

Product
Fluid Topics
Fluid Topics Version
3.7
Category
Technical Notes
Language
English
Target Audience
public

String metadata associates a string value with a key. String metadata can be flat or hierarchical. String metadata can also include multiple values, for example, all the authors of a topic:

from fluidtopics.connector import Topic, Metadata

string_meta = Metadata("version", "3.7")
multivalued_string_meta = Metadata("author", ["John Doe", "Jane Smith"])

topic_A = Topic.create(
topic_id="topic-a-id",
title="Topic A title",
body="<p>Body of the topic <strong>A</strong></p>",
children=[sub_topic],
metadata=[string_meta, multivalued_string_meta]
)

The following screenshot illustrates how string metadata are displayed in the Metadata journal and in the search facets:

string_metadata

authors_facet

version_facet