def test_search_lexical_externally_created_field_attributes(self):
        """lexical search doesn't need an up-to-date cache to work"""
        index_meta_cache.empty_cache()
        tensor_search.create_vector_index(
            config=self.config, index_name=self.index_name_3)
        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_3, [{"brand new field": "a line of text", "_id": "1234"}], "brand new field")
        assert "brand new field" not in index_meta_cache.get_cache()[self.index_name_1].properties
        result = tensor_search.search(
            index_name=self.index_name_3, config=self.config, text="a line of text",
            searchable_attributes=["brand new field"],
             search_method=SearchMethod.LEXICAL)
        assert result["hits"][0]["_id"] == "1234"
        result_2 = tensor_search.search(
            index_name=self.index_name_3, config=self.config, text="a line of text",
            searchable_attributes=["brand new field"],
             search_method=SearchMethod.LEXICAL)
        assert result_2["hits"][0]["_id"] == "1234"
lexical search doesn't need an up-to-date cache to work
tests/integ_tests/tensor_search/test_index_meta_cache.py