Function

AppStream-1.0AppStreamutils_get_tag_search_weight

  • Retrieve the raw search token weight for the given tag name that AppStream uses internally for searching. This can be used to implement separate, but compatible search logic.

    Parameters

    • tag_name: string

      A tag name in a component element, e.g. "name" or "summary" or "keyword"

    Returns number

    The tag weight used in (fulltext) searches. 0 for lowest weight/unused.