Setting up and/or troubleshooting the Search module

Right now, I have set up two custom search boxes on the website: one here in the blog and one in the book review database. If, for any reason, you want to add a new search box, I’ve already added the module and now you just have to add it as a block.

1. Go to the “Site Building” menu on the top of the screen and click on “Blocks” then “list.”
2. Go down to the list of disabled blocks and choose one of the custom search ones (it doesn’t matter which). Choose where you want to put it in the drop-down menu, press save at the bottom of the screen, and then click “configure.”
3. Make the settings whatever you want them to be. The most important thing here is the content tab, which lets you have control over what kind of content comes up in the search. For example, the search on the blog page only searches for blog entries, while the one on the book review page only searches book nodes. The other thing to note is that you can control what pages the search box is visible on. For example, to make the search of the book review database, I only wanted it present on the JIE bookshelf page (jie.yale.edu/books). To do this, under the “Page specific visibility settings” menu, make sure “show only on the listed pages” is chosen. Then, type in the path you want–so, for the book review database, I wrote “books.” If you want to have it appear on more than one page, press enter after typing in each path.

If you’re having trouble making the search work or if some nodes aren’t coming up in the results, you may have to reindex the site content. To do this, there are two different things you can try. First, go to the following page: http://jie.yale.edu/admin/reports/status. Go down to “cron maintenance tasks,” and then click the link to run cron manually. This process should index a certain number of nodes automatically. To check, or if the search still isn’t working correctly, go to this page. http://jie.yale.edu/admin/settings/search. This will say how much of the site has been indexed. If less than 100%, run cron again. If this still doesn’t work, try reindexing the site and all the results should show up.