Gravatar for sara.kevorkian@avanade.com

Question by sdkevorkian, Jul 12, 2018 10:04 PM

number of facet values to retrieve on "show more" for HierarchicalFacet Not working

Hi,

We have created a custom HierarchicalFacet component based off the Facet component in hive. the data source option "Number of additional facet values to fetch when 'More' is clicked" does not seem to be applying to the facet when changing it. The notes only say the FacetRange does not support this option and that the only Facet option not supported by HierarchicalFacet is customSort. do I need to manually set data-page-size="n" in the view?

Sara

Gravatar for sara.kevorkian@avanade.com

Comment by sdkevorkian, Jul 17, 2018 1:58 AM

Hi again,

I have tried setting data-page-size="1000" and am seeing the "show more" button update using the same parameter used to specify how many values are available at the start data-number-of-values="2". so when I click on "show more" it continually adds 2 values instead of show all as we need. Is there a way to accomplish this?

Sara

Gravatar for sara.kevorkian@avanade.com

Comment by sdkevorkian, Jul 19, 2018 2:35 PM

Hi again,

Is there a way to set this value for the HierarchiclaFacet? I am looking at the source code and from what I can tell it looks like it only adds the original value shown, not looking at the data-page-size option. is this true?

1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, Jul 19, 2018 4:31 PM

Hello, the option to determine the "page size" on that component does not exist. There is only the "data-number-of-values", which default to 5. It is also used to determine how many values are shown when clicking more.

There is no option to show 5 value initially, then show "everything" when you click "Show more".

Gravatar for sara.kevorkian@avanade.com

Comment by sdkevorkian, Jul 19, 2018 5:42 PM

Hi, thank you! Is there any way to override this with Javascript? I notice the showMore() method doesn't take any arguments so I'm assuming not... I had tried manually calling it a few times in a row with no effect too...

Ask a question