endeca returning zero results in refinements when none of refinements available in ref app?

674 Views Asked by At

I am using Endeca 3.1.2 Assembler API. When I am hitting the Endeca query, its giving me some bunch of refinements which contains zero counts and some positive counts .

Example:

category 
    **category1(0)**
      category2(25)
      **category3(0)**

Like this result I am getting. When I am hitting the same query in jspref application I am not getting any refinements which contains zero count.

My expectation is that I don't want to get that zero count refinements on the available refinements.

Please help me to get out from this.

2

There are 2 best solutions below

4
KrishPrabakar On

You might have disabled refinements enabled in your query.

  1. Check whether you have the Ndr parameter in Dgraph request log file
  2. If so, ensure your code doesn't have: ENEQuery.setNavDisabledRefinementsConfig() method.
0
Ajay Agrawal On

Endeca has one of the features called implicit dimensions. There might be the case that implicit dimension is being displayed to the front-end. Endeca provides implicit dimension as part of the query response. Following code is being used to get implicit dimension.

Navigation.getCompleteDimensions().getDimension(dimensionid)