def test_index_doc_on_empty_ix(self):
        """
        If a document is indexed with a tensor field vectors are added for the tensor field
        """
        self.add_documents(
            self.config, add_docs_params=AddDocsParams(
                docs=[{"_id": "123", "title": "mydata", "desc": "mydata"}],
                index_name=self.default_text_index, tensor_fields=["title"],
                device="cpu"
            )
        )
        doc_w_facets = tensor_search.get_document_by_id(
            self.config, index_name=self.default_text_index, document_id='123', show_vectors=True)
        assert len(doc_w_facets[enums.TensorField.tensor_facets]) == 1
        assert 'title' in doc_w_facets[enums.TensorField.tensor_facets][0]
        assert 'desc' not in doc_w_facets[enums.TensorField.tensor_facets][0]
        assert 'title' in doc_w_facets
        assert 'desc' in doc_w_facets

        If a document is indexed with a tensor field vectors are added for the tensor field
        
tests/integ_tests/tensor_search/integ_tests/test_add_documents_unstructured.py