Google Style Search Results Page.

Author Message

Nathan Kelly

Saturday 05 November 2005 9:04:30 pm

Hi all, I'm working on a search results page and I'm finding the output lacks context, the standard search results are just links with no descriptive text (as found on Google and most other search engines).

I personally find this style of search result practically useless unless I have 6 hours to spare clicking seemingly anonymous links.

So my question is has anyone created a google style search results page like the following and if so how did you do it? If not can it be done (and how)?

http://www.google.com/search?hl=en&lr=&c2coff=1&q=site%3Aez.no%2Fcommunity%2Fforum+%24node_id&btnG=Search

What I would like is the found word shown in context as google does i.e.

-------
Search results for the word "word"

<b>A link to the page that contains the word.</b>
...this is a part of the paragraph that contains the <b>word</b> you searched for on the website...
<i>this is the url of the page.</i>
-------

Or would I be better off disregarding the built in search engine and just using a google powered search?

Cheers!

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:49:08
Script start
Timing: Jan 19 2025 11:49:08
Module start 'layout'
Timing: Jan 19 2025 11:49:08
Module start 'content'
Timing: Jan 19 2025 11:49:09
Module end 'content'
Timing: Jan 19 2025 11:49:09
Script end

Main resources:

Total runtime1.2648 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 590.3125152.6250
Module start 'layout' 0.00840.0036 742.937539.4453
Module start 'content' 0.01211.2513 782.3828470.2656
Module end 'content' 1.26340.0014 1,252.64848.3125
Script end 1.2647  1,260.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2775160.0002
Check MTime0.00140.1093160.0001
Mysql Total
Database connection0.00110.090110.0011
Mysqli_queries1.219596.4178460.0265
Looping result0.00060.0459440.0000
Template Total1.216396.220.6081
Template load0.00230.180120.0011
Template processing1.214095.985120.6070
Template load and register function0.00010.008510.0001
states
state_id_array0.00230.180210.0023
state_identifier_array0.00260.204020.0013
Override
Cache load0.00190.1470170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.065510.0008
Fetch class attribute name0.00070.051920.0003
XML
Image XML parsing0.00050.039810.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00080.0611160.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs