![]() |
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 Jira, you can easily import Jira 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 Jira data for use in enterprise search.
CData simplifies access and integration of live Jira data. Our customers leverage CData connectivity to:
Most users leverage CData solutions to integrate Jira data with their database or data warehouse, whether that's using CData Sync directly or relying on CData's compatibility with platforms like SSIS or Azure Data Factory. Others are looking to get analytics and reporting on live Jira data from preferred analytics tools like Tableau and Power BI.
Learn more about how customers are seamlessly connecting to their Jira data to solve business problems from our blog: Drivers in Focus: Collaboration Tools.
> 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
JIRAUniqueKeyπ Define schema in Solr for Jira data.
Now we are ready to use Jira 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.jira.JIRADriver" url="jdbc:jira:User=admin;Password=123abc;Url=https://yoursitename.atlassian.net;">
</dataSource>
<document>
<entity name="Issues"
query="SELECT Id,JIRAColumn1,JIRAColumn2,JIRAColumn3,JIRAColumn4,JIRAColumn5,JIRAColumn6,JIRAColumn7,LastModifiedDate FROM Issues"
deltaQuery="SELECT Id FROM Issues where LastModifiedDate >= '${dataimporter.last_index_time}'"
deltaImportQuery="SELECT Id,JIRAColumn1,JIRAColumn2,JIRAColumn3,JIRAColumn4,JIRAColumn5,JIRAColumn6,JIRAColumn7,LastModifiedDate FROM Issues where Id=${dataimporter.delta.Id}">
<field column="Id" name="Id" ></field>
<field column="JIRAColumn1" name="JIRAColumn1" ></field>
<field column="JIRAColumn2" name="JIRAColumn2" ></field>
<field column="JIRAColumn3" name="JIRAColumn3" ></field>
<field column="JIRAColumn4" name="JIRAColumn4" ></field>
<field column="JIRAColumn5" name="JIRAColumn5" ></field>
<field column="JIRAColumn6" name="JIRAColumn6" ></field>
<field column="JIRAColumn7" name="JIRAColumn7" ></field>
<field column="LastModifiedDate" name="LastModifiedDate" ></field>
</entity>
</document>
</dataConfig>> solr stop -all > solr start
Using the CData JDBC Driver for Jira you are able to create an automated import of Jira 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 Jira Driver to get started:
Download NowLearn more:
π Jira IconRapidly create and deploy powerful Java applications that integrate with Jira including Customers, Inventory, Products, Orders, and more!