def _to_ha3_filter_operator(op: FilterOperator) -> str:
    """Convert FilterOperator to Alibaba Cloud OpenSearch filter operator."""
    if op == FilterOperator.EQ:
        return "="
    elif (
        op == FilterOperator.IN
        or op == FilterOperator.NIN
        or op == FilterOperator.TEXT_MATCH
        or op == FilterOperator.CONTAINS
    ):
        raise ValueError(
            "Alibaba Cloud OpenSearch not support filter operator: `in/nin/text_match/contains` yet"
        )
    else:
        return op.value
Convert FilterOperator to Alibaba Cloud OpenSearch filter operator.
llama-index-integrations/vector_stores/llama-index-vector-stores-alibabacloud-opensearch/llama_index/vector_stores/alibabacloud_opensearch/base.py