![]() |
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 Sage Intacct, you can easily import Sage Intacct 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 Sage Intacct data for use in enterprise search.
CData provides the easiest way to access and integrate live data from Sage Intact. Customers use CData connectivity to:
Users frequently integrate Sage Intact with analytics tools such as Tableau, Power BI, and Excel, and leverage our tools to replicate Workday data to databases or data warehouses.
To learn about how other customers are using CData's Sage Intacct solutions, check out our blog: Drivers in Focus: Accounting Connectivity.
> 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
SageIntacctUniqueKeyπ Define schema in Solr for Sage Intacct data.
Now we are ready to use Sage Intacct 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.sageintacct.SageIntacctDriver" url="jdbc:sageintacct:User=myusername;CompanyId=TestCompany;Password=mypassword;SenderId=Test;SenderPassword=abcde123;">
</dataSource>
<document>
<entity name="Customer"
query="SELECT Id,SageIntacctColumn1,SageIntacctColumn2,SageIntacctColumn3,SageIntacctColumn4,SageIntacctColumn5,SageIntacctColumn6,SageIntacctColumn7,LastModifiedDate FROM Customer"
deltaQuery="SELECT Id FROM Customer where LastModifiedDate >= '${dataimporter.last_index_time}'"
deltaImportQuery="SELECT Id,SageIntacctColumn1,SageIntacctColumn2,SageIntacctColumn3,SageIntacctColumn4,SageIntacctColumn5,SageIntacctColumn6,SageIntacctColumn7,LastModifiedDate FROM Customer where Id=${dataimporter.delta.Id}">
<field column="Id" name="Id" ></field>
<field column="SageIntacctColumn1" name="SageIntacctColumn1" ></field>
<field column="SageIntacctColumn2" name="SageIntacctColumn2" ></field>
<field column="SageIntacctColumn3" name="SageIntacctColumn3" ></field>
<field column="SageIntacctColumn4" name="SageIntacctColumn4" ></field>
<field column="SageIntacctColumn5" name="SageIntacctColumn5" ></field>
<field column="SageIntacctColumn6" name="SageIntacctColumn6" ></field>
<field column="SageIntacctColumn7" name="SageIntacctColumn7" ></field>
<field column="LastModifiedDate" name="LastModifiedDate" ></field>
</entity>
</document>
</dataConfig>> solr stop -all > solr start
Using the CData JDBC Driver for Sage Intacct you are able to create an automated import of Sage Intacct 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 Sage Intacct Driver to get started:
Download NowLearn more:
π Sage Intacct IconComplete read-write access to Sage Intacct enables developers to search (Contacts, Invoices, Transactions, Vendors, etc.), update items, edit customers, and more, from any Java/J2EE application.