Download & Extend

search service that returns content from e.g. coresearches, apachesolr, etc.

Project:Services
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

search.nodes returns search data from node_search().

However, other modules may not use their own hook_search(), e.g. coresearches module, apachesolr, windows live search module, Yahoo search BOSS module, etc.

This patch adds search.content method

AttachmentSizeStatusTest resultOperations
search_service_content.patch3.41 KBIgnored: Check issue status.NoneNone

Comments

#1

Updated patch that excludes distributed_search_search() and opensearch_aggregator_search()

AttachmentSizeStatusTest resultOperations
search_service_content.patch3.42 KBIgnored: Check issue status.NoneNone

#2

Status:needs review» closed (won't fix)

This method will not be put into core services as it is related to modules outside of drupal core.

#3

Status:closed (won't fix)» needs review

I have improved upon the code by taking out the reference to modules outside of drupal core.

Also, have added an admin interface to display a checkbox for all available hook_search() found.

The use of alternate searches other than core search is becoming more and more common, especially with Acquia's support of apache solr search.

Let me know how I can improve upon this feature.

AttachmentSizeStatusTest resultOperations
328764.patch6.58 KBIgnored: Check issue status.NoneNone

#4

Made the default to be node_search() instead of apachesolr_search_search()

AttachmentSizeStatusTest resultOperations
328764.patch6.54 KBIgnored: Check issue status.NoneNone

#5

I have just had a quick look at the patch (fuller review to follow later). And I like the changes that you have made to review explicity calls to other search techologies. Exposing hook_search makes complete sense.

#6

Status:needs review» fixed

Committed with some minor tweaks and tidy up of array elements that weren't required.

#7

Status:fixed» closed (fixed)

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