Page 1 of 1

Search Result Template

Posted: Wed Apr 11, 2007 11:23 pm
by qbrix
I'm working on designing the Result Template for the Search Module and want it to look more like google in functionality. In other words for each result it shows the title, a small excerpt from the result, and the url. By default the Search Module has two of these in its default Result Template. But what about things like the excerpt? In pisearch it has that paramater ($entry->details), does the Search Module have this parameter or something similar? Is there a list of available parameters?

I'm pretty sure this is possible in CMS because this site seems to pull off exactly what I want (at least I think it's CMS):
http://www.kreatives-chaos.com/suche?q=test

any help would be greatly appreciated, thanks

Re: Search Result Template

Posted: Thu Apr 12, 2007 2:54 pm
by qbrix
I'm curious, does anyone modify their search or just keep it at default?

Another interesting point. When you look at the results of the default search, it shows the title followed by a hypen followed by the title again. The default template has the following: $title - $urltext ($weight%)

Empirically both $title and $urltext are always identical. Furthermore looking at the code you see that they are explicit copies of each other. Whats the point of that? From what I can tell so far, what I want isn't possible with the search module. At this point I would just be happy with the excerpt of text the search found the keyword inside of.

Ideas? Thoughts?

Re: Search Result Template

Posted: Thu Apr 12, 2007 3:22 pm
by qbrix
Ted cleared the issue up. This functionality doesn't exist in the Search Module, but rather it does in pisearch.