Monday 20 April 2015

ATG Calendar Scheduler interesting

Today I am going to explain very interesting point about ATG schedulers.



To configure the scheduler in ATG we need to assign value to schedule property of the scheduler.
 There are 3 types of formats for this property.
  1. Relative Schedule.
  2. Periodic Schedule.
  3. Calendar Schedule.
Out of above mentioned formats Calendar Schedule is most confusing.Here is the syntax for Calendar Schedule.

Syntax : calendar <months> <dates> <days of week>  <occurrences in month> <hours> <minutes>

Example schedule 

calendar * * 1 * 22 0

Here the * in date field will invoke this scheduler every day. 

Thumb rule is

A * entry selects all values for that field. A period (.) selects no values.

calendar * . 1 * 22 0

Above scheduler will run weekly.
 

Saturday 11 April 2015

Index xml File into Endeca

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.

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.