Jump to:
| Project: | Custom Search |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Is there any way to include multiple search paths for each search block.
For reference you could look at the Adjusti-search module. I tried using the Adjustisearch module, but it doesn't support multiple search blocks like your module. The Adjust-search module works perfectly with adding custom search paths including external sites all within the same "search for" dropdown select.
The adjustisearch module avoids the content type settings page by instead allowing you to enter your own search providers. Search providers can include Drupal itself or an external site search.
For instance, I could specify
0 /search/apachesolr_search/%search% Everything
4 /search/node/type:question%20%search% Frequently Asked Questions
5 http://www.google.com/#q=%search% Google Search
10 /search/user/%search% User Search
11 http://drupalmodules.com/m?title=%search%&v=6.x DrupalModules.com
This would give a search block that shows a search field with a dropdown select with the following choices:
Everything - **This searches all of your drupal site if you have Apache Solr enabled
Frequently Asked Questions - **This is a custom content type
Google Search
User Search
DrupalModules.com
The adjustisearch maintainer has indicated he doesn't have much time to improve his module, perhaps you could join forces to have the best of both worlds?
Anyways, thank you for your module. Your definitely on the right track.
Comments
#1
I had to release a stable update last week so I was very busy because there were many many changes.
I can now concentrate on new features like this one…
#2
Awesome, I'm looking forward to testing it.
#3
just curious, how is this coming along?
#4
Working on it today.
#5
Ok. Just Commited to DEV.
There's a "Custom search path" textarea in the settings page and block admin page where you can enter the paths.
To convert your example, use:
/search/apachesolr_search/[key]|Everything
/search/node/type:question%20[key]|Frequently Asked Questions
http://www.google.com/#q=[key]|Google Search
/search/user/[key]|User Search
http://drupalmodules.com/m?title=[key]&v=6.x|DrupalModules.com
Please download the dev version when refreshed, and review the changes.
#6
I have been testing these features and so far it is working for everything that I can throw at it. Great Job!!!
#7
#8
Automatically closed -- issue fixed for 2 weeks with no activity.