def test_search_without_metadata_async(
        self, sync_client: Elasticsearch, index: str
    ) -> None:
        """Test end to end construction and search without metadata."""
        store = VectorStore(
            index=index,
            retrieval_strategy=DenseVectorStrategy(),
            embedding_service=ConsistentFakeEmbeddings(),
            client=sync_client,
        )

        texts = ["foo", "bar", "baz"]
        store.add_texts(texts)

        output = store.search(query="foo", k=1)
        assert [doc["_source"]["text_field"] for doc in output] == ["foo"]
Test end to end construction and search without metadata.
test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py