Does the SQL query return a column named myid or are you creating that field elsewhere? It probably doesn't so all documents get the same document id, overwriting each other all the time.
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.