I talked to @nick_vh about this, we should use search_get_default_module_info() to be able to automatically integrate with Solr or whatever other custom search engine people have installed.

Comments

Wim Leers’s picture

Title: Let edit_aloha_link_lookup() use the default search module » Let aloha_repository_link use the default search module
Project: Edit » Aloha Editor
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Aloha Editor » Code

Now in includes/pages.inc/aloha_repository_link().

Nick_vh’s picture

Wim Leers’s picture

Yes :)

Wim Leers’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Wim Leers’s picture

Assigned: Wim Leers » Unassigned
Issue tags: +post-feature freeze

..

Wim Leers’s picture

Version: 8.x-2.x-dev » 7.x-2.x-dev
Status: Postponed » Patch (to be ported)

So apparently search_get_default_module_info() is utterly useless. It's only intended to let its callers know at which path it provides search results, it does not provide a function to call to retrieve search results.

AFAICT, hook_search_execute() is the closest thing that we have to an API. Hence I've updated the code to at least use that; now user profiles will also be found.

http://drupalcode.org/project/aloha.git/commit/227bc7e

Wim Leers’s picture

Issue summary: View changes

Updated issue summary.