I am trying to bulk index from MS-SQL data to ES (5.6.3). The SQL query in SSMS gives 16284 as total count but after getting indexed, Kibana gets the total count as 15768.However the stats in API gets shows both count in two differnt places. Please see below and let me what is the issue and how do I get the data count correctly in Kibana?
Also read some template mapping before indexing, still didnt help.
Thanks for the reply. Something weird I noticed. With document_id matched with a column in my SQL table, the count is mismatching, whereas if I leave it to ES with its own uuid, the count matches. I have attached the LS file here for your reference. Also i verified the mtxnid is a PK on the sql side, so there couldnt be a duplicate value.
The query file is SELECT Txn.TransactionID mtxnid FROM Transactions Txn INNER JOIN table1 (nolock) ON table1.TransactionID= Txn.TransactionID INNER JOIN table2 (nolock) ON table2.TransactionID = Txn.TransactionID
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.