![]() |
VOOZH | about |
The Apache Solr platform is a popular, blazing-fast, open source enterprise search solution built on Apache Lucene.
Apache Solr is equipped with the Data Import Handler (DIH), which can import data from databases and, XML, CSV, and JSON files. When paired with the CData JDBC Driver for Workday, you can easily import Workday data to Apache Solr. In this article, we show step-by-step how to use CData JDBC Driver in Apache Solr Data Import Handler and import Workday data for use in enterprise search.
CData provides the easiest way to access and integrate live data from Workday. Customers use CData connectivity to:
Users frequently integrate Workday with analytics tools such as Tableau, Power BI, and Excel, and leverage our tools to replicate Workday data to databases or data warehouses. Access is secured at the user level, based on the authenticated user's identity and role.
For more information on configuring Workday to work with CData, refer to our Knowledge Base articles: Comprehensive Workday Connectivity through Workday WQL and Reports-as-a-Service & Workday + CData: Connection & Integration Best Practices.
> solr create -c CDataCoreFor this article, Solr is running as a standalone instance in the local environment and you can access the core at this URL: http://localhost:8983/solr/#/CDataCore/core-overview
WorkdayUniqueKeyπ Define schema in Solr for Workday data.
Now we are ready to use Workday data in Solr.
In this section, we walk through configuring the Data Import Handler.
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" />
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">solr-data-config.xml</str>
</lst>
</requestHandler>
<dataConfig>
<dataSource driver="cdata.jdbc.workday.WorkdayDriver" url="jdbc:workday:User=myuser;Password=mypassword;Tenant=mycompany_gm1;BaseURL=https://wd3-impl-services1.workday.com;ConnectionType=WQL;InitiateOAuth=GETANDREFRESH;">
</dataSource>
<document>
<entity name="Workers"
query="SELECT Id,WorkdayColumn1,WorkdayColumn2,WorkdayColumn3,WorkdayColumn4,WorkdayColumn5,WorkdayColumn6,WorkdayColumn7,LastModifiedDate FROM Workers"
deltaQuery="SELECT Id FROM Workers where LastModifiedDate >= '${dataimporter.last_index_time}'"
deltaImportQuery="SELECT Id,WorkdayColumn1,WorkdayColumn2,WorkdayColumn3,WorkdayColumn4,WorkdayColumn5,WorkdayColumn6,WorkdayColumn7,LastModifiedDate FROM Workers where Id=${dataimporter.delta.Id}">
<field column="Id" name="Id" ></field>
<field column="WorkdayColumn1" name="WorkdayColumn1" ></field>
<field column="WorkdayColumn2" name="WorkdayColumn2" ></field>
<field column="WorkdayColumn3" name="WorkdayColumn3" ></field>
<field column="WorkdayColumn4" name="WorkdayColumn4" ></field>
<field column="WorkdayColumn5" name="WorkdayColumn5" ></field>
<field column="WorkdayColumn6" name="WorkdayColumn6" ></field>
<field column="WorkdayColumn7" name="WorkdayColumn7" ></field>
<field column="LastModifiedDate" name="LastModifiedDate" ></field>
</entity>
</document>
</dataConfig>> solr stop -all > solr start
Using the CData JDBC Driver for Workday you are able to create an automated import of Workday data into Apache Solr. Download a free, 30 day trial of any of the hundreds of CData JDBC Drivers and get started today.
Download a free trial of the Workday Driver to get started:
Download NowLearn more:
π Workday IconRapidly create and deploy powerful Java applications that integrate with Workday.