def test_lexical_search_with_custom_vector_field_searchable_attributes(self):
        """
        Search for the doc with lexical search, with searchable attributes
        """

        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",
                                "my_custom_vector": {
                                    "content": "toxt to search",  # almost matching
                                    "vector": self.random_vector_1  # size is 512
                                }
                            },
                            {
                                "_id": "barely matching doc",
                                "barely_field": "random words search"
                            },
                            {
                                "_id": "exactly matching doc",
                                "exact_field": "text to search"
                            }
                        ],
                        device="cpu"
                    )
                )

                # All searchable attributes
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text="text to search",
                    search_method=enums.SearchMethod.LEXICAL,
                    searchable_attributes=["my_custom_vector", "barely_field", "exact_field"]
                )
                assert res["hits"][0]["_id"] == "exactly matching doc"

                # Only custom and barely matching
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text="text to search",
                    search_method=enums.SearchMethod.LEXICAL,
                    searchable_attributes=["my_custom_vector", "barely_field"]
                )
                assert res["hits"][0]["_id"] == "custom vector doc"

                # Only barely matching
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text="text to search",
                    search_method=enums.SearchMethod.LEXICAL,
                    searchable_attributes=["barely_field"]
                )
                assert res["hits"][0]["_id"] == "barely matching doc"

                # Only custom vector
                res = tensor_search.search(
                    config=self.config, index_name=index.name, text="text to search",
                    search_method=enums.SearchMethod.LEXICAL,
                    searchable_attributes=["my_custom_vector"]
                )
                assert res["hits"][0]["_id"] == "custom vector doc"

        Search for the doc with lexical search, with searchable attributes
        
tests/integ_tests/tensor_search/integ_tests/test_custom_vector_field.py