def test_search_lexical_int_field(self):
        """doesn't error out if there is a random int field"""
        add_docs_caller(
            config=self.config, index_name=self.index_name_1, docs=[
                {"abc": "some text", "other field": "baaadd", "_id": "5678", "my_int": 144},
                {"abc": "some text", "other field": "Close match hehehe", "_id": "1234", "my_int": 88},
            ], auto_refresh=True)

        s_res = tensor_search.search(
            config=self.config, index_name=self.index_name_1, text="cool match",
            search_method=SearchMethod.LEXICAL)
        assert len(s_res["hits"]) > 0
doesn't error out if there is a random int field
tests/integ_tests/tensor_search/test_search.py