Monday, 5 December 2016

Querying for Dynamic Field Names in Endeca.

Hi all, have you wonder how can we query for the multiple fieldnames in endeca? . This is also as simple as querying for the fieldnames as others, but the Dynamic fields should be initiazed properly before sending it to Endeca.

We can see how to initialize and set it in the Query for Endeca below.

How to Set FieldNames in Endeca.

pCartridgeConfig.setFieldNames(fieldNames);

Where pCartridgeConfig is the ResultsListConfig Component. Which holds the Value for the Cartridges Setting and Configurations.


fieldNames is the List that will be used for the Defining the List of Fields.


How to Set Dynaic FieldNames in endeca

List<String> fieldNames = new ArrayList<String>(getFieldNames());
pCartridgeConfig.setFieldNames(fieldNames);

In Case of the Dynamic fieldNames, we have to first initialize it and then set it in the pCartidgeConfig.The Reason being that the Setting the Property Value in the Request or Prototype Component we have to initiaze and set it . As given in the actual ATG Document.

No comments:
Write comments