def test_search_lexical_externally_created_field(self):
        """ search (search_method=SearchMethod.lexical)
        after the first cache hit is empty, it should be updated.
        """
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(index_name=self.index_name_1,
                docs=[{"some field": "Plane 1"}], auto_refresh=True, device="cpu"))
        self._simulate_externally_added_docs(
            self.index_name_1, [{"brand new field": "a line of text", "_id": "1234"}], "brand new field")
        result = tensor_search.search(
            index_name=self.index_name_1, config=self.config, text="a line of text",
             search_method=SearchMethod.LEXICAL)
        assert len(result["hits"]) == 0
        # REFRESH INTERVAL IS 2 seconds
        time.sleep(4)
        result_2 = tensor_search.search(
            index_name=self.index_name_1, config=self.config, text="a line of text",
             search_method=SearchMethod.LEXICAL)
        assert result_2["hits"][0]["_id"] == "1234"
 search (search_method=SearchMethod.lexical)
        after the first cache hit is empty, it should be updated.
        
tests/integ_tests/tensor_search/test_index_meta_cache.py