How to debug none working search query?

How to debug none working search query?