Quicksearch for Static Pages and Multilingual Entries

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.


Trackback-URL für diesen Eintrag

  • Keine Trackbacks


Ansicht der Kommentare: (Linear | Verschachtelt)

deminy am um :

Full text search in MySQL doesn't support multibyte languages (such as Chinese, Japanese, etc) well.

For people who use Serendipity for multibyte languages, they could use the following two plugins to implement "site search" function:

serendipityplugingooglequicksearch serendipityeventgooglesitemap

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.

Manuel Charisius am um :

Great! BTW, as it seems, the version information on the SPARTACUS page (http://spartacus.s9y.org/index.php?mode=bygroupseventen) hasn't been updated yet. A download correctly gives you v3.30 though. ;-)

Cheers, -Manuel

Kommentar schreiben

Die angegebene E-Mail-Adresse wird nicht dargestellt, sondern nur für eventuelle Benachrichtigungen verwendet.

Um maschinelle und automatische Übertragung von Spamkommentaren zu verhindern, bitte die Zeichenfolge im dargestellten Bild in der Eingabemaske eintragen. Nur wenn die Zeichenfolge richtig eingegeben wurde, kann der Kommentar angenommen werden. Bitte beachten Sie, dass Ihr Browser Cookies unterstützen muss, um dieses Verfahren anzuwenden.

BBCode-Formatierung erlaubt
Markdown-Formatierung erlaubt