Although there are two items found for one specific content type, facet search displays (1) after that type, how is this possible?

Please take a look at the attached picture

example

CommentFileSizeAuthor
Knipsel.PNG44.18 KBnielsvoo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nielsvoo’s picture

Priority: Normal » Critical

Oke i noticed the admin count work well after that i struggled with the node rights and noticed that when enabling "Bypass content access control" for the authenticated user (al my users are logged in) the counts do work, but this is not a great solutions becouse they now can edit all pages.

Please can you fix this?

nielsvoo’s picture

Oke, again i am one step further. The conflict occurs when the module Content Access is enabled.

I think the facet counts only work on core rights. is there a possibility for you to make it work with this access module also?

nielsvoo’s picture

Component: User interface » Code
Category: support » bug

Please!!! help me with this issue,

also the Flag friend access control to limit node types function in the flag friend module is buggy with counting nodes....

Thank you
Niels

cpliakas’s picture

Title: filtering counts not correct! » Filter counts incorrect when modules that implement the node access system are being used

Hi Niels.

There is a lot of complex SQL happening here, so my guess is that the node access system isn't being leveraged on some of the subqueries. I would take a look at the FacetapiQuery::execute() method, specifically the $subquery query on line 94 and ensure the appropriate access controls are implemented.

Thanks,
Chris

nielsvoo’s picture

Oke Chris thanks,

Maybe a solution will be for someone else, i implemented the solr search server, this one works fine with the other modules!

Niels

cpliakas’s picture

nielsvoo,

Good choice :-) Solr is definitely best-in-breed here, the purpose of this module is to provide a better starting point for people who are testing or can't use Solr or another external search engine for one reason or another.

Thanks again for reporting,
Chris

cpliakas’s picture

Issue summary: View changes

Text