How to determine if a field is analyzed or not_analyzed?

My guess is that your query is wrong.

If you send a full script to reproduce that, I can explain what is happening.