def test_lexical_search_overwriting_doc(self):
        """can we overwrite doc and do a search on the latest doc?"""
        a_consistent_id = "my id is awesome"
        d0 = {
            "_id": a_consistent_id,
            "some doc 1": "some  2",
            "the big field": "very unlikely theory. is pretty awesom, in the",
            "boring field": "4 grey boring walls. "
        }
        d1 = {
            "_id": a_consistent_id,
            "some doc 1": "some FIELD 2",
            "the big field": "just your average doc...",
            "Cool field": "Marqo is the best!"
        }
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(index_name=self.index_name_1, auto_refresh=True,
                docs=[d0], device="cpu"))
        assert [] == tensor_search._lexical_search(
            config=self.config, index_name=self.index_name_1, text="Marqo field")["hits"]
        grey_query = tensor_search._lexical_search(
            config=self.config, index_name=self.index_name_1, text="4 grey boring walls")
        assert len (grey_query["hits"]) == 1
        assert grey_query["hits"][0]["_id"] == a_consistent_id
        # update doc so it does indeed get returned
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(index_name=self.index_name_1, auto_refresh=True,
                docs=[d1], device="cpu"))
        cool_query = tensor_search._lexical_search(
            config=self.config, index_name=self.index_name_1, text="Marqo field")
        assert a_consistent_id == cool_query["hits"][0]["_id"]
        assert len(cool_query["hits"]) == 1
        assert [] == tensor_search._lexical_search(
            config=self.config, index_name=self.index_name_1, text="4 grey boring walls")["hits"]
can we overwrite doc and do a search on the latest doc?
tests/integ_tests/tensor_search/test_lexical_search.py