Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 05:54 UTC
Updated:
2 Jan 2012 at 22:02 UTC
I'm having a problem where I can't index any items. I always get the following in dblog: An error occurred while trying to index items on index default_node_index: No field settings for index with id default_node_index.
On the workflow tab of the index when I enable (check) a processor on a field the setting isn't saved. I don't know if this is related? At a bit of a loss, done the usual cache clearing, deleting and recreating indexes and servers.
The only unusual thing about this install is that its using the Domain Access module. Any help greatly appreciated.
Comments
Comment #1
jaxxham commentedI'm having the same issue since updating, too.
Comment #2
drunken monkeyThe patch in #1308638-23: Reduce size of stored index settings should fix your problems.
Comment #3
jaxxham commentedHi drunken monkey - I applied the patch but still no joy. Still getting "An error occurred while trying to index items on index node_index: No field settings for index with id node_index."
Comment #4
MrGeneric commentedI also have this behavior when installing search api on fresh drupal install (even after the patch). It seems to work when I upgraded from an older version though*.
Edit: *Old indexes will reindex but I cannot index new ones
Comment #5
drunken monkeyDo you use the latest versions of the DB search module (which I assume you're using)?
I also assume that you do have some fields selected? With the latest dev version of the DB search module, see whether re-saving the „Fields“ form solves the issue.
Otherwise, please elaborate a bit further on your setup.
Comment #6
Ilbaboomba commentedSame problem here, even after the patch in #2. Tried on 2 different servers, nothing changes.
Clean install of drupal + entity + search_api + search_api_db. created a new server (database server), new index, and when I try to index the nodes, it returns this error: "Couldn't index items. Check the logs for details."
In the log it says: "An error occurred while trying to index items on index default_node_index: No field settings for index with id default_node_index."
I got also this error (but I don't remember how to replicate this one): "SearchApiException: No field settings for index with id default_node_index. in SearchApiDbService->indexItems() (line 314 of /var/www/sites/all/modules/search_api_db/service.inc", so I'm thinking that the bug could be in search_api_db and not in search_api... hope this could help!
Thank you,
Alessandro.
Comment #7
drunken monkeyAlready figured that out half an hour before, but thanks for your detailled report!
Please see if the dev version of the DB search module solves the issue for you.
Comment #8
tancI cloned the latest 7.x of db search module and downloaded latest dev of search_api and did a database upgrade but still have the same problem. I also deleted the index and the server and recreated but again the same message.
Comment #9
drunken monkeySee #1313280-4: Adapt to new structure of index fields settings (and also use that issue for other such fields-settings problems with the DB search).
Comment #11
amaria commentedStill seeing this problem with the latest release of Search API and Search API Database. I tried with the default index as well just in case it was my custom index but that one gets this error too.
UPDATE: Fixed this by setting the changed field in {search_api_item} to 0 (from -1) for all items.
Comment #12
ralf.strobel commentedI also encountered this problem after upgrading to 7.x-1.0 (Database Search 7.x-1.0-beta2). It disappeared after I removed and re-added all fields from the index. Something obviously still doesn't get upgraded right.
EDIT: More precisely, it were taxonomy relation fields (fulltext on term name) that I had to remove and add again.
In the process I also got this message once: "Invalid argument supplied for foreach() in SearchApiDbService->fieldsUpdated() (line 227 of /var/www/dfuze/sites/all/modules/search_api_db/service.inc)."