thematic_search.TopicQuery
- class thematic_search.TopicQuery(db, indices: list)
A query object carrying a set of topic indices. Supports navigation within the topic tree or retrieval of topic data.
- Typical usage:
topicdb.q.search(“jazz music”).theme().parents().info()
- __init__(db, indices: list)
Methods
__init__(db, indices)children()Return the child topics of these topics.
least_upper_bound()Return the least upper bound (lowest common ancestor) of these topics.
metadata()Return topic metadata rows for these topics.
parents()Return the parent topics of these topics.
samples([threshold])Return document indices inside these topics, combined with OR logic.
to_fuzzy()Use this TopicQuery's indices as a filter for a FuzzyQuery
unwrap()where(query)Filter topics by metadata column values.