def test_search_with_custom_vector_field_searchable_attributes(self):
        """
        Searchable attributes are only available for structured indexes.
        """
        for index in self.indexes:
            with self.subTest(f"Index: {index.name}, type: {index.type}"):
                # Skip this test for unstructured indexes.
                if isinstance(index, UnstructuredMarqoIndex):
                    break

                self.add_documents(
                    config=self.config, add_docs_params=AddDocsParams(
                        index_name=index.name,
                        docs=[
                            {
                                "_id": "custom vector doc 1",
                                "my_custom_vector": {
                                    "content": "doesn't matter",
                                    "vector": self.random_vector_1
                                }
                            },
                            {
                                "_id": "custom vector doc 2",
                                "my_custom_vector_2": {
                                    "content": "doesn't matter",
                                    "vector": self.random_vector_2
                                }
                            },
                            {
                                "_id": "custom vector doc 3",
                                "my_custom_vector_3": {
                                    "content": "doesn't matter",
                                    "vector": self.random_vector_3
                                }
                            },
                        ],
                        device="cpu"
                    )
                )

                # All searchable attributes
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text={"dummy text": 0},
                    search_method=enums.SearchMethod.TENSOR,
                    context=SearchContext(**{"tensor": [{"vector": self.random_vector_1, "weight": 1}], }),
                    searchable_attributes=["my_custom_vector", "my_custom_vector_2", "my_custom_vector_3"]
                )
                assert res["hits"][0]["_id"] == "custom vector doc 1"

                # Only 2 and 3
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text={"dummy text": 0},
                    search_method=enums.SearchMethod.TENSOR,
                    context=SearchContext(**{"tensor": [{"vector": self.random_vector_1, "weight": 1}], }),
                    searchable_attributes=["my_custom_vector_2", "my_custom_vector_3"]
                )
                assert res["hits"][0]["_id"] == "custom vector doc 2"

                # Only 3
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text={"dummy text": 0},
                    search_method=enums.SearchMethod.TENSOR,
                    context=SearchContext(**{"tensor": [{"vector": self.random_vector_1, "weight": 1}], }),
                    searchable_attributes=["my_custom_vector_3"]
                )
                assert res["hits"][0]["_id"] == "custom vector doc 3"

        Searchable attributes are only available for structured indexes.
        
tests/integ_tests/tensor_search/integ_tests/test_custom_vector_field.py