This plugin allows you to search for tags (keywords) and words. It uses an automatically created index and orders the results by relevancy (number of occurences, title is more important than content, etc.).
Each result entry includes the title, the language (if used together with the I18N plugin), the date and an excerpt of the page. It can be styled with CSS or the results can be retrieved as array, in which case you are responsible for creating the HTML.
Also included is a function to display all tags with a size proportional to their relative number of uses and a search form.
To display search form and search results on a page, include the following text:
(% searchform %) (% searchresults %)
To additionally display a search form in the template which will call above page (let's assume it's URL is 'search'), use:
<?php get_search_form(array('slug'=>'search', 'showTags'=>0)); ?>
You can use the plugin for news or blog, see News & Blogs.
More information on the configuration page of the plugin.
Example site: http://mvlcek.bplaced.net with more information on customization.
Version 1.2: Output search results as RSS feed (see here)
Version 2.0: Indexing of custom fields, indexing of other data possible
Version 2.1: adds RSS links in HTML head for RSS feeds
Version 2.2: Support of I18N fancy URLs, uses Pagify for paging, if installed
Version 2.3: search form has now auto-completion and clicking on a tag will show which tag combinations are available
Version 2.5: live search
Version 2.6: virtual tag added for parent slug
Version 2.7: support for language specific tags, better support for language specific search
Version 2.8: virtual tags for year/month, danish, polish
Version 2.9: mark search terms in result pages and when coming from Google or Bing
Version 2.9.2: removed i18ncommon directory: update i18ncustomfields to 1.8.5 and i18n to 3.2.1 and delete plugins/i18n_common
Version 2.10: support for I18N fancy URL placeholders
Version 2.11: support for sorting by other fields e.g. "order:+menuOrder"
Unzip into your plugins directory.
Include jQuery in your template, unless you use the most basic search form like
(% searchform showTags:0 ajax:0 %)2.10
These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide