When enabling node access to the index in Search API and run cron, Fuzzy search throws up the following error and does not complete indexing the nodes.

Notice: Undefined index: search_api_access_node in FuzzySearchService->indexItem() (line 351 of /sites/all/modules/fuzzysearch/includes/service.inc).

Steps to reproduce

1. Install all latest versions of Search API, Fuzzy Search etc...
2. Navigate to the 'default fuzzy search workflow at admin/config/search/search_api/index/default_fuzzysearch_index/workflow
3. Enable 'Node access'
4. run cron to index nodes
5. error should appear

Comments

pixelsweatshop’s picture

Title: Fuuzy search doesn't appear to support the node access in Search API » Fuzzy search doesn't appear to support the node access in Search API
gecko85’s picture

I'm getting the same errors. If I try to re-index, I get these errors. Even worse, it breaks the search entirely. Trying any search will return the following error:

SearchApiException: Unknown field in filter clause: search_api_access_node. in FuzzySearchService->createFilterCondition() (line 1079 of /sites/all/modules/fuzzysearch/includes/service.inc).

Unfortunately this would be a deal breaker. I've finally got everything else working properly (I think), but search must support node access. We have very distinct user roles, and can't have *all* search results being shown to all users, including pages they don't have access to.

Any help would be appreciated.

awolfey’s picture

Title: Fuzzy search doesn't appear to support the node access in Search API » Search API node access alteration bugs present in fuzzysearch
Priority: Critical » Normal

This is a search_api bug. See #1414138: Notice: Undefined index: search_api_access_node for a workaround. I'll leave this issue open here for now until we're sure it's fixed.

gecko85’s picture

Thank you! The workaround listed worked.

awolfey’s picture

Status: Active » Closed (fixed)

#141438 has been fixed and committed, so closing.