Custom dynamic mapping for date through java


I am working on custom dynamic date mapping and was able to create that through java.
Currently issue that I am facing is, while doing search on that data, it takes some time to come for the first time. This was not the case if I use dynamic mapping on date that elastic provides.

Elastic version :2.4

Any idea why is it taking time to execute the query in case of custom dynamic mapping?

Thanks in advance,

Resolved with refreshindex call

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.