SearchAPI setItemsPerPage

Created on 24 February 2022, over 2 years ago
Updated 14 June 2023, over 1 year ago

Problem/Motivation

Good afternoon.
I'm using this module with a SearchAPI view. When I check the option 'Show only used items' it seems to work fine, but only take the taxonomy used in the firsts ten results. I'm using two patches from another issues for this module,

https://www.drupal.org/files/issues/2021-11-04/illegal-choice-when-using... β†’
https://www.drupal.org/files/issues/2021-01-25/3090224-9.patch β†’

Steps to reproduce

I think is related with this line:

$view->setItemsPerPage(0);

(Line 65 with those patches applied). It should take all results, but it's only taking the first ten. I tried with NULL and -1, but always show the same taxonomies. When I try with a high value, for example, 10000, then, it show all the taxonomies that are being used correctly, for that range of results.
If we use a view that doesn't use SearchAPI, then the module works fine.
Does anyone have the same problem?

πŸ› Bug report
Status

Closed: works as designed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024