Apache Solr for Indexing Data by Sachin Handiekar & Anshul Johri

Apache Solr for Indexing Data by Sachin Handiekar & Anshul Johri

Author:Sachin Handiekar & Anshul Johri [Handiekar, Sachin]
Language: eng
Format: azw3, mobi, pdf
Publisher: Packt Publishing
Published: 2015-12-27T16:00:00+00:00


In the preceding <dataConfig> element, we're just using a single XML file; we need to get this file indexed for our example. We can also use the following configuration to index a list of XML files:

<dataConfig> <dataSource type="FileDataSource" encoding="UTF-8"/> <document> <entity name="document" processor="FileListEntityProcessor" baseDir="/path/to/xml-files" fileName=".*\.xml$" recursive="false" rootEntity="false" dataSource="null"> <entity processor="XPathEntityProcessor" name="musicCatalog" pk="songId" url="${document.fileAbsolutePath}" forEach="/musicCatalog/albums/album/" transformer="RegexTransformer"> <!-- Definition of Fields as per the previous example --> </entity> </entity> </document> </dataConfig>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.