05 Dec 2008 01:55
TAGS: dev search wikicomplete wikidot
I just introduced this nice feature to the Wiki Complete wiki farm (based on Wikidot software).
How does it work?
Here are the Google results for female superheroes wikicomplete query:
locate any link from wikicomplete.info and click. The words female, superheroes, wikicomplete should be highlighted using different colors.
The same mechanism is used for local searches.
hartnell (the main admin of the Wiki Complete) really likes this feature. There is some chance we'll introduce it to Wikidot.com! After the new search for wikidot is done.
Tech
If you wonder how did I do this, here is the answer. I used Zend_Search_Lucene utility for highlighting. It was all quick and easy after parsing the HTTP_REFERER looking for the actual search query.
Summary
This feature was implemented on some random pages I walked through. I hope you like it being implemented on WikiComplete!
It's awesome. Needs work when dealing with incoming searches but pretty much perfect already for internal searches. Try searching on the Search Ninja.
— hartnell
Just to let everyone know — the feature is not working at the moment. So if you click on the page…. nothing will happen. Er.. right now. Maybe soon. :)
— hartnell
Hey, it's working still.
Piotr Gabryjeluk
visit my blog
Post preview:
Close preview