def search(self, needle, hit_max=<NUM_LIT:16>, quads=<NUM_LIT:0>):
val = _fitz.TextPage_search(self, needle, hit_max, quads)<EOL>if len(val) == <NUM_LIT:0>:<EOL><INDENT>return val<EOL><DEDENT>nval = []<EOL>for v in val:<EOL><INDENT>q = Quad(v)<EOL>if not quads:<EOL><INDENT>nval.append(q.rect)<EOL><DEDENT>else:<EOL><INDENT>nval.append(q)<EOL><DEDENT><DEDENT>val = nval<EOL>return val<EOL>
search(self, needle, hit_max=16, quads=0) -> PyObject *