Inconsistent field mapping -- sometimes string, sometimes long

I think you might be hitting the issue described in this post . This is a bug that was fixed in 2.0 so you will need to upgrade to avoid hitting it again or explicitly map the fields in your index and not rely on the dynamic mapping