You may be doing something like putting the docs into a different type/index or the docs are going into a different mapping based upon something overriding it. I've just copied your example and set up a sample document/query to https://gist.github.com/eskibars/2a1e91454eb4fc4a88860cc80ea09acd which works.
If you want to debug why it's not working, you might want to do a GET /yourindex to make sure type_name is set as you expected. You might also want to inspect the _index and _type at the result hits from a query you don't expect the documents to match on and see if they may not be added to the right index/type.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.