dartora

Tag

A Tag<E> is a named value attached to a Searchable. Tags allow search queries to restrict or score items based on categorical metadata rather than just plain text. A tag can behave as a boolean toggle (on/off) or store an arbitrary value.

Fields

Behaviour

Use in queries

In query strings, tags are matched with a leading #. For example, the query #red will match any searchable whose tags map contains a key red and whose tag is active (isTag == true and value == true) or whose tag is a non‑boolean value whose toString() contains the word red. Tags with isTag == false behave like additional keywords; their string values contribute to the full text but are not matched with a # prefix.