40 second timeout per query or session

If a query takes more than 40 seconds it will drop. This is particularly common when I am searching for content. Any recommendations?