class

Tag

Inherits Ktistec::Model::Polymorphic < Ktistec::Model::Common < Ktistec::Model < Reference < Object

Tag.

Constants

TRACKED_TYPES = {"Tag::Hashtag" => "hashtag", "Tag::Mention" => "mention"}

Tag types with a count surface. Only these are cached and reconciled.

See "Tag statistics".

Class methods

all_subtypes

Returns type and all concrete (non-abstract) subtypes, including any aliases defined on the type.

Source
match(prefix, limit = 1)

Matches on tag prefix.

Returns results ordered by number of occurrences. Treats SQL LIKE wildcards (% and _) as literal characters.

Ranks by the cached count; approximate between reconciles, which is fine for ranking.

See "Tag statistics".

Source
reconcile_statistics

Exact recount of every tracked key.

Heals #update_count drift and closes the missing-key gap.

See "Tag statistics".

Source
reconcile_window_size

Number of tag rows scanned per .reconcile_statistics window.

See "Tag statistics".

Source
reconcile_window_size=(reconcile_window_size : Int32)

Number of tag rows scanned per .reconcile_statistics window.

See "Tag statistics".

Source
short_type
Source

Instance methods

after_create
Source
after_destroy
Source
href
Source
href=(href : String | Nil)
Source
name
Source
name=(name : String)
Source
short_type
Source
subject_iri
Source
subject_iri=(subject_iri : String)
Source

Macros

common_filters

Adds common filters to a query.

Source

Nested types