You are here

README.txt in Search configuration 6

Same filename and directory in other branches
  1. 8 README.txt
  2. 5 README.txt
  3. 7 README.txt
search_config is used to configure the advanced search form.

Installation
------------

1. Copy entire search_config directory to the module directory of your Drupal 
   installation
2. Enable the search_config module on the admin modules page
3. Go to administer » Search Configuration, you should now see a 
   "Advanced search form configuration" collapsed fieldset.


General Information
-------------------

This module started out as a simple means of configuring the *display* of the
advance search form. A few features have been added since thanks to the
contributions of others.

In simple use cases the search_config module allows site admins to decide which 
fields to display on the advanced search form when enabled. This does not stop 
astute users from entering the search criteria directly into the search text 
fields. There is also the option of selecting which node types not to index.
Once selected they are also automatically removed from the advance search
form. This gives more control over the content that can be searched to those
who need it. 

Search config now has the option of choosing which search implementation
should be the default, for example, "content", "user", "apachesolr", etc. The 
regular "content" search provided by the node module is selected by default.

Three new permissions are also provided, these simple control the display of
fields per role and is useful if fields should not be removed globally from
the form.

The following fields or selected members of their groups can removed from the 
form globally or on role by role basis:

 - keywords
 - categories
 - node types

Some of what this module does can also be achieved by theming the form. 

Removing nodes from the search index
------------------------------------

A feature offered by this module is to stop the indexing of specific node types.
There is no easy way to do this is Drupal. Items can be removed from the search
index though and this was the original method that was used. This worked by
deleting values of the selected type from the search index using the
search_wipe function in hook_update_index. This proved problematic, especially
in cases where search_config was installed on a site with a lot of content. No
throttling was enabled in the hook and this caused cron to crash. It also
posed the problem of search_config playing catch-up in removing the items from
the index since there was no way to prevent them from getting there in the
first place. I gave up on this approach. 

Items are no longer removed from the index but instead hook_db_rewrite_sql is
used to prevent select content types from showing up in search results. This
is a ugly and hack but it provides the desired result. If you want to help solve
this issue of preventing indexing of content plese see this issue: 
http://drupal.org/node/111744 

File

README.txt
View source
  1. search_config is used to configure the advanced search form.
  2. Installation
  3. ------------
  4. 1. Copy entire search_config directory to the module directory of your Drupal
  5. installation
  6. 2. Enable the search_config module on the admin modules page
  7. 3. Go to administer » Search Configuration, you should now see a
  8. "Advanced search form configuration" collapsed fieldset.
  9. General Information
  10. -------------------
  11. This module started out as a simple means of configuring the *display* of the
  12. advance search form. A few features have been added since thanks to the
  13. contributions of others.
  14. In simple use cases the search_config module allows site admins to decide which
  15. fields to display on the advanced search form when enabled. This does not stop
  16. astute users from entering the search criteria directly into the search text
  17. fields. There is also the option of selecting which node types not to index.
  18. Once selected they are also automatically removed from the advance search
  19. form. This gives more control over the content that can be searched to those
  20. who need it.
  21. Search config now has the option of choosing which search implementation
  22. should be the default, for example, "content", "user", "apachesolr", etc. The
  23. regular "content" search provided by the node module is selected by default.
  24. Three new permissions are also provided, these simple control the display of
  25. fields per role and is useful if fields should not be removed globally from
  26. the form.
  27. The following fields or selected members of their groups can removed from the
  28. form globally or on role by role basis:
  29. - keywords
  30. - categories
  31. - node types
  32. Some of what this module does can also be achieved by theming the form.
  33. Removing nodes from the search index
  34. ------------------------------------
  35. A feature offered by this module is to stop the indexing of specific node types.
  36. There is no easy way to do this is Drupal. Items can be removed from the search
  37. index though and this was the original method that was used. This worked by
  38. deleting values of the selected type from the search index using the
  39. search_wipe function in hook_update_index. This proved problematic, especially
  40. in cases where search_config was installed on a site with a lot of content. No
  41. throttling was enabled in the hook and this caused cron to crash. It also
  42. posed the problem of search_config playing catch-up in removing the items from
  43. the index since there was no way to prevent them from getting there in the
  44. first place. I gave up on this approach.
  45. Items are no longer removed from the index but instead hook_db_rewrite_sql is
  46. used to prevent select content types from showing up in search results. This
  47. is a ugly and hack but it provides the desired result. If you want to help solve
  48. this issue of preventing indexing of content plese see this issue:
  49. http://drupal.org/node/111744