<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2>The default search just renders the 'content' that was
stored in the Lucene index at indexing time (i.e. when resources are
published). At that time, VFS resource keywords are concatenated with the
content in the body of the VFS resource, and the result is indexed as the
resource's 'content'.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2>I suppose there are two ways round it:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2>(i) instead of relying on the default search code, pull
real document content out, at the time search results are presented.
This is probably going to slow things down, but it should be
possible.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2>(ii) you could change what's indexed <EM>and</EM> what's
done at search time, but this involves quite a bit of programming and
configuration. At indexing time, the Lucene index is populated by default
by class org.opencms.search.documents.A_CmsVfsDocument and those classes which
extend it; in turn, OpenCms knows to use those classes because they are
identified as so-called [Lucene] document factories in
opencms-search.xml.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=565070212-01062006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Dakoun<BR><B>Sent:</B> 01 June 2006 12:53<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] How to get rid of the
keywords in the search results?<BR></FONT><BR></DIV>
<DIV></DIV>Hello everyone,<BR><BR>I'm using OpenCms 6.2, with a tomcat and an
apache in front.<BR><BR>I would like in the search results to get rid of the
keywords. But I didn't find how to achieve it.<BR><BR>Does anyone of you know
how to do it? <BR><BR>Thanks for helping me.<BR><BR>Tom<BR></BODY></HTML>