def test_add_documents_whitespace(self):
        """
        Indexing fields consisting of only whitespace works
        """
        docs = [
            {"title": ""},
            {"title": " "},
            {"title": "  "},
            {"title": "\r"},
            {"title": "\r "},
            {"title": "\r\r"},
            {"title": "\r\t\n"},
        ]
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(
                index_name=self.index_name_1, docs=docs, device="cpu"
            )
        )
        count = self.pyvespa_client.query(
            {"yql": f"select * from sources {self.index_name_1} where true limit 0"}
        ).json["root"]["fields"]["totalCount"]

        assert count == len(docs)

        Indexing fields consisting of only whitespace works
        
tests/integ_tests/tensor_search/integ_tests/test_add_documents_structured.py