Saturday, March 12, 2016

Endeca Basics : What is Implicit Dimension?

Implicit dimension values are values that occur on all remaining records of the result set, so that clicking on dimensions would not narrow ... thumbnail 1 summary
Implicit dimension values are values that occur on all remaining records of the result set, so that clicking on dimensions would not narrow the result any further.  

The Dgraph automatically "contracts" dimension value out and would not be displayed. Implicit Dimension would be displayed automatically if implicit dimension flag set in Dgidx.


There are few scenario to have implicit dimensions available.There are ways to get implicit dimension value from Endeca response navigation object. 


Find out Sample Code below. Below code looking for type implicit refinement.

if (eneQueryResults.getNavigation() != null) {
 Dimension dimension = eneQueryResults.getNavigation().getCompleteDimensions()
 .getDimension(Long.parseLong(cartridgeConfig.getDimensionId()));

  if (dimension != null &&"Type".equalsIgnoreCase(dimension.getName())&& dimension.getImplicitLocations().size()>0 && dimension.getRefinements().size()==0) {
 RefinementMenu outputModel = new RefinementMenu(cartridgeConfig);

 RefinementBuilder.populateRefinementMenuProperties(outputModel, cartridgeConfig, dimension, "Nrmc", "showMoreIds",
 getNavigationState(), getActionPathProvider());
 DimLocationList locationList = dimension.getImplicitLocations();
 List refinements = new ArrayList(locationList.size());

  for (int j = 0; (j < locationList.size())&& (j < cartridgeConfig.getLimit()); ++j) {
 Refinement ref = RefinementBuilder.createRefinement(
 getActionPathProvider(),((DimLocation) locationList.get(j)).getDimValue(),getNavigationState());
 ref.setCount(new Long(eneQueryResults.getNavigation().getTotalNumERecs()).intValue());
 refinements.add(ref);
 }
 outputModel.setRefinements(refinements);
 refinementMenu = outputModel;
 }
 } 


Click here to get more topics related to Endeca basic concepts.

No comments

Post a Comment

Note: Only a member of this blog may post a comment.

Text Widget