<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6556.0">
<TITLE>Zcatalog searches</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've setup a site search using ZCatalog and ZCTextIndexs that's happily doing what I want, but I'd like to take a stage further. Is there a way using the ZCatalog Brain objects returned by the ZCatalog search to get the text that actually caused the match? I'm trying to end up with a preview of the area of the content that caused the match, or is a different approach needed? </FONT></P>

<P><FONT SIZE=2 FACE="Arial">The only way I can think of doing this at the moment is to get the actual content object via the ZCatalog brain object and then re-run a regex search on the content, pulling out the text around any match. This just seems the wrong way forward is there a better way?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks for any pointers, I'm still very much in the newbie class at present.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Brian </FONT>
</P>
<BR>
<BR>

<br>http://www.bbc.co.uk/<br><br>This e-mail (and any attachments) is confidential and may contain<br>personal views which are not the views of the BBC unless specifically<br>stated.<br>If you have received it in error, please delete it from your system. <br>Do not use, copy or disclose the information in any way nor act in<br>reliance on it and notify the sender immediately. Please note that the<br>BBC monitors e-mails sent or received. <br>Further communication will signify your consent to this.</BODY>
</HTML>