<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2>Hi:</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>You
can build an easy linear search algorithm, but this is very
slow...</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2>Alternatives:</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>1. Use
file properties</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005> <FONT face=Arial
color=#0000ff size=2>This is a little "hack". You can write content info into
the file properties and use them to search faster (the file properties are
stored directly into one DB table)</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>2. (My
choice). You can update one search index every time you publish one content.
Example:</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005> <FONT face=Arial
color=#0000ff size=2>You have a index table like this one</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>(id,
linkToCms, type)</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005> <FONT face=Arial
color=#0000ff size=2>On every content publish, you store/update the content info
into this index table</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>(0,
/products/product1, 123)</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>(1,
/products/product2, 111)</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005>
<DIV><SPAN class=258555408-21062005><FONT face=Arial color=#0000ff size=2>(2,
/products/product3, 123)</FONT></SPAN></DIV>
<DIV><SPAN class=258555408-21062005></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005> The search is now
implemented like an "standard" query</SPAN></DIV>
<DIV><SPAN class=258555408-21062005></SPAN> </DIV>
<DIV><SPAN class=258555408-21062005>3. You are Mr. Wonder Programmer, and you
implement a port for OpenCms to store the XML contents into a XML database like
dbxml (<A
href="http://www.dbxml.com/product.html">http://www.dbxml.com/product.html</A>).
Don't forget to share it with all of
us.</SPAN></DIV></SPAN></DIV></SPAN></DIV></FONT></SPAN></DIV></BODY></HTML>