Hello,
When I want to create and index taxonomie term with search api i have this error message.
PDOException : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vocabulary_machine_name' in 'where clause': INSERT INTO {search_api_item} (item_id, index_id, changed) SELECT t.tid AS item_id, :index_id AS index_id, 1 AS changed FROM {taxonomy_term_data} t WHERE (vocabulary_machine_name IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => modeles_etg [:index_id] => 9 ) dans SearchApiEntityDataSourceController->startTracking() (ligne 169 dans /sites/all/modules/contrib/search_api/includes/datasource_entity.inc).
Tks
Comment | File | Size | Author |
---|---|---|---|
#12 | 2524314-6--create_taxonomy_term_indexes.patch | 3.29 KB | drunken monkey |
#6 | 2524314-6--create_taxonomy_term_indexes.patch | 3.29 KB | drunken monkey |
Comments
Comment #1
smitty CreditAttribution: smitty commentedMe too! Please help ...
Comment #2
drunken monkeyCannot reproduce this, sorry! For me, creating an index for taxonomy terms works perfectly fine.
I'd guess you have some module installed that messes this up (i.e., by declaring the vocabulary's machine name it's primary entity ID)?
Comment #3
drunken monkeyComment #4
chr.fritschGot the same issue when i use the bundle restriction in the DATASOURCE OPTIONS.
Comment #5
smitty CreditAttribution: smitty commentedThat is exactly ma issue. If i restrict the the index to two taxonomy-bundles out of 5 Taxonomies I get the error.
If I do not restrict and accept that all 5 bundles are indexed the index is created without any problem.
Comment #6
drunken monkeyAh, you're right, that really doesn't work!
The attached patch should fix this. Please test!
Thanks for reporting!
Comment #8
smitty CreditAttribution: smitty commentedWorks fine for me. Thanks!
Comment #9
akosipax CreditAttribution: akosipax commentedWorks fine for me as well.
Comment #12
drunken monkeyWeird stuff …
Comment #13
drunken monkeyOK, seems to be fine now, weird testbot flukes …
Anyways, thanks for testing, good to hear it works for you, too!
Committed.
Comment #16
aschiwi CreditAttribution: aschiwi at undpaul commentedWas this added to 7.x-1.18? I am getting this error just as described here - I have 2 of 5 vocabularies selected in a multilingual term index.