Quicksearch for Static Pages and Multilingual Entries
Posted by Garvin Hicking in Announcements, Plugins
Comments (2)
Trackbacks (0)
In the past few days, several people asked for the possibility to quicksearch not only serendipity entries but also static pages and multilingual entries.
I was overwhelmed to see how easy adding support for both was possibly, and did so within the past 30 minutes. I guess this once again proves how flexible the plugin architecture of Serendipity is... :-)
To get quicksearch possibilites in the Static pages, just fetch version 3.30 of the staticpage plugin via Spartacus. It will be online within the next 48 hours. As soon as you've upgraded, the quicksearch will show the results of found staticpages below the usual search results. You can customize the output of course, via the plugin_staticpage_searchresults.tpl template file.
Support for multilingual entries has one caveat: It requires an updated serendipity core file, which I just committed to our SVN 1.1-alpha1 and 1.0 release branch: Patch. This allows version 2.0 of the multilingual plugin (also available on Spartacus the next 48 hours) to fully interoperate with the search facility. It will search all entries in the language you are currently reading in and display the entries completely interface with the usual search results.
Please let me know, if it works out fine for you. Note that fulltext search requires MySQL 4.0 and above - SQLite and postgresql emulate the search with a LIKE search. Expect some performance decrease in that matter.
For people who use Serendipity for multibyte languages, they could use the following two plugins to implement "site search" function:
serendipity_plugin_google_quicksearch
serendipity_event_google_sitemap
Also, you can apply an account in Google Sitemaps, and add RSS feeds from Serendipity to Google Sitemaps. Generally, a new post could be reached from Google in 24 to 48 hours after posted and submitted to Google's search engine.
BTW, as it seems, the version information on the SPARTACUS page (http://spartacus.s9y.org/index.php?mode=bygroups_event_en) hasn't been updated yet. A download correctly gives you v3.30 though. ;-)
Cheers,
-Manuel


