The feature to apply custom search settings to advanced settings is great, but we're looking for the reverse. I'd like to keep our initial search options simple and then apply custom settings to just the advanced search. Essentially make each feature available for either basic or advanced, but not both.

Comments

jdanthinne’s picture

Status: Active » Postponed (maintainer needs more info)

Could you tell me exactly what you would be able to do/change in advanced search?
Because, when I started this module, the objective was to bring the advanced search options to the default search block, and I don't see what I could add to the advanced search that's not already there.
A real-life example would be nice.

jgreep’s picture

I have certain content types that we don't want to allow searching on. I'm currently disabling them with hook_form_alter. It works, but I think using your module would be more elegant.

I did some more hunting and found that the search_config module does exactly what I was trying to explain.

jdanthinne’s picture

Status: Postponed (maintainer needs more info) » Needs work

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…

jdanthinne’s picture

Status: Needs work » Needs review

Just commited changes to the DEV version.
Updated the Results Page admin to fully customize the advanced search form.
Now you can choose which content types, taxonomy vocabularies and criteria to display…

Cheek’s picture

I think he was trying to disable searching on certain node types in general. So let's say you have node type 'music', 'album' and 'record label'. But you don't want the record labels to show up in results. Not on the first search page (before going advanced) and not when the user didn't select any node type on advanced.

As I understand (tried 7.x-1.4) this is currently not possible.

This module does the same (but is not available for D7):

http://drupal.org/project/search_block

jdanthinne’s picture

No responses from jgreep, so I can't tell if that was what he needed.
But I think I can also add an option to disable some content types from showing up in the results…

jgreep’s picture

Status: Needs review » Reviewed & tested by the community

Sorry for the delay. I've finally had a chance to test it. It looks great. Thanks!

Cheek’s picture

That would be great jdanthinne! A lot of people want this and it's strange it doesn't even have a simple implementation in D7.

For example, in this topic they're been talking about it since Jan 2007.. http://drupal.org/node/111744

Anyway, it would be a nice addition to your already full-featured module. :)

jdanthinne’s picture

@jgreep: you're welcome!

@Cheek: I'm working on that, but instead of removing node from the search index, I prefer just to hide them from the results. So I can have different settings per block.

Cheek’s picture

Yeah, I think most people just want to filter them from the result page. Removing them from the index won't be necessary.

jdanthinne’s picture

Commited to DEV.
That wasn't easy at all!!
Needed nasty hacks, and different for Drupal 6 (pretty much the same as search_config, found by Lullabot) and 7 (has to find it myself).
Hope it won't break :-)

So now, there's a new setting in Custom Search / Content page (and in each Custom Search Block as well) to exclude some content types.

jdanthinne’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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