Default Email app won't perform IMAP server search

Hello.

I'm noticing that the stock email client won't search my emails directly from imap server but make an offline search instead among the emails that are already synchronized (in my case past 2 weeks).

That's awful and make the search very useless.

It's interesting that exchange online search works OK.

As far as I remember, my previous phone (Galaxy Nexus with aosp) could search online trough IMAP as well.

Any ideas to get this working?

Regards.

Sent from my LG-D805 using Tapatalk