How do I check why my search query takes too long? Is there something like Explain command in SQL databases?

How do I check why my search query takes too long? Is there something like Explain command in SQL databases?

Have you looked at the profile API?