While digging into sphinxsearch, I found that it's using NODE_BUILD_SEARCH_INDEX and NODE_BUILD_SEARCH_RESULT node build modes for index building. As you may know CCK 2.0 gives ability to setup it's fields according to specific node build mode. But search build modes can only be configured when drupal's search module is enabled. It's because CCK overides it's own hook instead search module in function search_content_build_modes(). As it's a hook, it doesn't executes while search module is disabled.
With using sphinx search there are no need to have search module at all, but there is a strainght need to make settings to CCK fields in search. So, it will be nice if sphinxsearch will implement hook_content_build_module() instead of search module.
I created the patch which allow to do so. Thanks for review.
| Comment | File | Size | Author |
|---|---|---|---|
| sphinxsearch.module.patch | 482 bytes | neochief |
Comments
Comment #1
neochief commentedComment #2
markus_petrux commentedThank you! I didn't know this. I'll include it in the next commit.
Comment #3
markus_petrux commentedI've committed a slight variation of the patch. Checking for existence on 'content' module is not really necessary because it is the one that will invoke the hook itself.
http://drupalcode.org/project/sphinxsearch.git/commit/e650c62
Thank you!