I'm Using the JDBC importer for indexing data from SqlServer table with the below syntax. If I remove Where condition then it is working or else indexing is not working. Please let me know how can I include where condition in my query.
{
"type" : "jdbc",
"jdbc": {
"url":"jdbc:sqlserver://serverip;databaseName=dbname",
"user":"user",
"password":"password",
"sql":"SELECT id, name FROM employee where status = 'Y'",
"index" : "employee",
"type" : "employeetype"
}
}
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.