def test_search_lexical_param(self):
        """tensor_search.search(search_method='lexical') should behave identically to
            lexical_search() for a given set of args
        """
        d0 = {
            "some doc 1": "some FIELD 2",
            "the big field": "very unlikely theory. marqo is pretty awesom, in the field"
        }
        d1 = {"FIELD omega": "Marqo which has many fields ", "field lambda": "field",}
        d2 = {"some doc 1": "some 2 jnkerkbj", "field abc": "robodog is not a cat"}
        d3 = {"TITITLE": "Tony from the way",
              "field lambda": "some prop called marqo. This actually has a lot more content than you thought." }
        d4 = {"Lucy": "Travis", "field lambda": "there is a whole bunch of text here. "
                                                "Just a slight mention of a field"}
        d5 = {"some completely irrelevant": "document hehehe"}
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(index_name=self.index_name_1, auto_refresh=True,
                docs=[d0, d4, d1, d3, d2], device="cpu"))
        res_lexical_search = tensor_search._lexical_search(
            config=self.config, index_name=self.index_name_1, text="Marqo field",
            searchable_attributes=["field lambda", "FIELD omega"])
        res_search_entry_point = tensor_search.search(
            config=self.config, index_name=self.index_name_1, text="Marqo field", device="cpu",
            searchable_attributes=["field lambda", "FIELD omega"],
            search_method=enums.SearchMethod.LEXICAL)
        res_search_entry_point_no_processing_time = res_search_entry_point.copy()
        del res_search_entry_point_no_processing_time ['processingTimeMs']
        del res_search_entry_point_no_processing_time ['query']
        del res_search_entry_point_no_processing_time ['limit']
        del res_search_entry_point_no_processing_time ['offset']
        assert len(res_lexical_search['hits']) > 0
        assert res_search_entry_point_no_processing_time == res_lexical_search
tensor_search.search(search_method='lexical') should behave identically to
            lexical_search() for a given set of args
        
tests/integ_tests/tensor_search/test_lexical_search.py