Building a search View that respects access control I'm implementing search on a site using taxonomy access control with search api and search api solr.  Reading the help page node access section, I see:


  Needs details on how to build a View that respects access control.


… which is exactly what I need.  How can I make a search view properly respect the taxonomy access control?  I've got node access turned on in the index settings, and see the field available in the views filter, so I see some items with node_access_taxonomy_access_role:n set up, I could try to filter on this, but it would not affect the facets.

I have 


  Additional access checks on result entities


turned on in query settings as a temporary measure, but that only filters the search results, and not any facets, etc.

One possible (though inefficient) solution seems like it could be to make two indexes and the have two displays in the search view, searching the right index depending on whether the user is authenticated or not, but I see no good way to limit the index based on the taxonomy term assigned.

It seems like my question extends beyond the boundaries of the search view, and onto the index itself.
For the Search Views module there's an option that enables further access checks on indexed entities that will enable your Taxonomy Access Control permission check. 

You'll find in the Views UI under Advanced > Query settings on via the Settings link. It is enabled via the Additional access checks on result entities checkbox. As a caveat, this option will make result counts, pagination, and other search result details behave oddly since  permission checks can't be made at index time.