def get_full_alias(self, query):
        """
        Get the full alias given a search query.

        Args:
            query: The query this function performs searching on.

        Returns:
            The full alias (with the placeholders, if any).
        """
        if query in self.alias_table.sections():
            return query

        return next((section for section in self.alias_table.sections() if section.split()[0] == query), '')
Get the full alias given a search query.

        Args:
            query: The query this function performs searching on.

        Returns:
            The full alias (with the placeholders, if any).