geofield_apachesolr_index() makes the assumption that it is always being called in the context of a field on a node being indexed. This fails for non-node entites.
In apachesolr, #1838802: Add $entity_type parameter to field indexing callbacks will add an $entity_type parameter for field indexing callbacks. The attached patches update the field indexing callbacks in Geofield 7.x-2.x and 7.x-1.x to be entity-agnostic.
They depend on the #1838802: Add $entity_type parameter to field indexing callbacks getting accepted.
| Comment | File | Size | Author |
|---|---|---|---|
| geofield_indexing_callback_7.x-1.x.patch | 1.06 KB | brianV | |
| geofield_indexing_callback_7.x-2.x.patch | 1.27 KB | brianV |
Comments
Comment #1
phayes commentedThis is now fixed. Thanks!
Comment #2
brianV commentedI see that you fixed this (albeit in a different way) in 7.x-2.x... Is it possible to either backport your fix to 7.x-1.x? Otherwise, can you apply this patch to that branch?
Comment #3
brianV commentedMoving back to active for above comment
Comment #4
phayes commented