Restricting maximum length for search query

Hi,

Can anyone assist with setting maximum length for search query for forum? Is there a setting for that?

Thanks