Here is the small example with steps to index xml file into Endeca.
1. First of all configure xml file in Record Adapter of pipeline.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE RECORDS SYSTEM "records.dtd">
<RECORDS>
<RECORD>
<PROP NAME="SampleProperty1">
<PVAL>12</PVAL>
</PROP>
<PROP NAME="SampleProperty2">
<PVAL>Jagdev</PVAL>
</PROP>
<PROP NAME="SampleDimension1">
<PVAL>1029</PVAL>
</PROP>
</RECORD>
</RECORDS>
3. Run baseline indexing and see the resutls in jspref.
1. First of all configure xml file in Record Adapter of pipeline.
2. Create your xml file.Below is the sample xml file content. Property name is the name of the source property defined in the property mapper. This is Endeca Record XML format. XML adapters consumes data in this format without transformation, other xml formats cannot be read by the data foundry.To support these situations, an XSLT transformation can be applied to the source data to convert it into Endeca Records XML, which the Data Foundry can read.In this case configure xslt in transformer tab of record adapter configuration.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE RECORDS SYSTEM "records.dtd">
<RECORDS>
<RECORD>
<PROP NAME="SampleProperty1">
<PVAL>12</PVAL>
</PROP>
<PROP NAME="SampleProperty2">
<PVAL>Jagdev</PVAL>
</PROP>
<PROP NAME="SampleDimension1">
<PVAL>1029</PVAL>
</PROP>
</RECORD>
</RECORDS>
3. Run baseline indexing and see the resutls in jspref.
Can you point to any examples that do XSLT transformation?
ReplyDeleteHi David,
DeleteToday I tried xml indexing with xslt transformation.Here is post on this.http://edgydebug.blogspot.in/2015/12/use-xslt-to-index-xml-file-into-endeca.html