Hierarchical String Metadata - Fluid Topics - 3.8 - Technical Notes

Develop Connectors with the Fluid Topics API

Product
Fluid Topics
FT_Version
3.8
Category
Technical Notes
language
English
audience
public

Hierarchical string metadata associates a tree of string values with a key. For instance, if the metadata is configured as a search facet, Fluid Topics allows users to search for all content matching one of the nodes of the hierarchy.

The following lines show an example of hierarchical string metadata:

from fluidtopics.connector import StructuredDocument, Metadata

hierarchical_string_meta = Metadata(
"Antidot",
[
["Solutions", "Fluid Topics"],
["Solutions", "AFS@Store"],
["Technology", "Content Delivery"],
["Technology", "Taruqa Search"],
["Technology", "Content Classifier"]
]
)

book_A = StructuredDocument.create(
document_id="my-structured-document-book-a",
title="My Structured Document - BookA",
locale="en-US",
pretty_url="my-pretty-structured-document-book-a",
toc=[topicA, topicB],
editorial_type=EditorialType.BOOK,
metadata=[hierarchical_string_meta]
)

The following screenshot illustrates how hierarchical string metadata are displayed in the search facets:

hierarchical-metadata