Predefined indexes should be provided to serve as examples and to help users to get started more quickly. The attached patch features working code. The problem is that with a regular installation the indexes from /indexes aren't imported. This does however happen when doing a reinstall using Devel.

CommentFileSizeAuthor
import_predefined_indexes_00.patch4 KBxano

Comments

xano’s picture

Status: Needs work » Fixed

The problem has been fixed. drupal_write_record(), which is called in $index->insert() requires index_schema(), but module_invoke_all() doesn't call it, because when index_install() is being executed the module is not yet marked installed.

Added and committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xano’s picture

Assigned: xano » Unassigned