Search nearly working... 1

Posted by Steve Longdo Thu, 13 Apr 2006 23:39:00 GMT

I nearly have the search working the way I want. The word count it generates is based on words only. HTML is stripped as is any content between <code> tags. I notice that the current live search in Typo looks at the html content when making a match. So if you see any articles coming back with an empty Snippet block("") it is because your search matched something in a generated URL and no actual words in the article.
I am working on the best way to handle this behaviour. Maybe just list the links that appear in the article or provide a count of them.
Also I will be making hyperlinks in the balloons functional. I created new graphics for the balloon to see if IE will correctly display the new GIF (I knew PNG support in IE was bad, but this was my first personal encounter), I will know in a little bit when I get to work and can check it out in IE...
By the way the concept for this method of displaying search results is all Dunstan Orchard. I've just been making it work within Typo.

UPDATE1: IE is now showing search results. I had to resort to JavaScript, because of IE's limited support for CSS *:hover. Still looking at hyperlinks...
UPDATE2: Hyperlinks are in place amd working. For tags and comments also the snippet of text is now a link to the article.
UPDATE3: Added search term highlighting like Google Cache. This uses some JavaScript from: http://www.nsftools.com/misc/SearchAndHighlight.htm
Comments

Leave a response

  1. Piers Cawley 2 days later:
    I keep meaning to look into integrating Typo's search with Scoop's shiny new acts_as_searchable (http://www.poocs.net/articles/2006/04/06/introducing-acts_as_searchable) plugin. Except, Scoop's got a commit bit for typo, so maybe I'll leave it up to him.
Comments