def METHOD_NAME(
    order: "Order",
) -> List[NoValidationSearchVector]:
    transaction_vectors = []
    for transaction in order.payment_transactions.all()[
        : settings.SEARCH_ORDERS_MAX_INDEXED_TRANSACTIONS
    ]:
        transaction_vectors.append(
            NoValidationSearchVector(
                Value(graphene.Node.to_global_id("TransactionItem", transaction.token)),
                config="simple",
                weight="D",
            )
        )
        if transaction.psp_reference:
            transaction_vectors.append(
                NoValidationSearchVector(
                    Value(transaction.psp_reference),
                    config="simple",
                    weight="D",
                )
            )
        for event in transaction.events.all()[
            : settings.SEARCH_ORDERS_MAX_INDEXED_TRANSACTIONS
        ]:
            if event.psp_reference:
                transaction_vectors.append(
                    NoValidationSearchVector(
                        Value(event.psp_reference),
                        config="simple",
                        weight="D",
                    )
                )
    return transaction_vectors