<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff size=2>You
can try with this:</FONT></SPAN></DIV>
<UL>
<LI><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2>First, modify the jsp, headlink.jsp, with this </FONT></SPAN></LI></UL>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2><input type="hidden" name="action"
value="search"><BR> <input type="hidden" name="uri" value="<%=
cms.getRequestContext().getUri() %>"><BR> <input type="hidden"
name="__locale" value="<%= cms.getRequestContext().getLocale()
%>"><BR> <input type="hidden" name="query"
value=""><BR> <input type="hidden" name="page"
value="1"><BR><STRONG> <input type="hidden" name="index"
value="<%= cms.property("search.index", "search", "Online project (VFS)")
%>"> </STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff
size=2><STRONG></STRONG></FONT></SPAN> </DIV>
<UL>
<LI><SPAN class=999463912-19072006><FONT face=Arial color=#0000ff size=2><FONT
size=2>Set a property like "search.index" on the top level folder of each
Locale specifying the index name</FONT></FONT></SPAN></LI></UL><SPAN
class=999463912-19072006>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=999463912-19072006></SPAN><FONT face=Arial color=#0000ff
size=2>R<SPAN class=999463912-19072006>egards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=999463912-19072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=999463912-19072006>MARC</SPAN></DIV>
<DIV><BR></DIV></FONT></SPAN>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Mr Alireza Fattahi<BR><B>Sent:</B> dimanche 9 juillet 2006
10:35<BR><B>To:</B> The OpenCms mailing list<BR><B>Subject:</B> [SPAM] - Re:
[opencms-dev] Search multilanguage site - Bayesian Filter detected
spam<BR><BR></FONT></DIV>Hi,<BR><BR>Ok. One search index for each locale. And
one source for each locale too!<BR><BR>But about TemplateOne (which I think
the problem is there) does any body knows how it can be configured to use
these indexes!?<BR><BR>Regards,<BR>Alireza Fattahi<BR><BR><B><I>Christian
Steinert <christian_steinert@web.de></I></B> wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">Mr
Alireza Fattahi schrieb:<BR>> Hi,<BR>> <BR>> Thanks for the
help.<BR>> <BR>What do you expect?<BR>Template one will create a list box
with one entry for each search index.<BR><BR>But it seems that you have
created only one search index.<BR>It would be better to create two index
sources - one for en and one for fa<BR><BR>Then for each index sources, you
create a search index.<BR><BR>These search indexes should then also be
available in template one, I think.<BR><BR>hth<BR>christian<BR><BR><BR>>
The site structre is:<BR>> MySite<BR>> en<BR>> folder1<BR>>
folder2<BR>> fa<BR>> folder1<BR>> folder2<BR>> <BR>> There
are some files; and we set the local property of en and fa folders to en and
fa.<BR>> <BR>> The analyzer is:<BR>> <ANALYZER><BR>>
<CLASS>org.apache.lucene.analysis.standard.StandardAnalyzer</CLASS><BR>>
<LOCALE>fa</LOCALE><BR>> </ANALYZER><BR>> <BR>> The index
is<BR>> <INDEX><BR>> <NAME>MySite</NAME><BR>>
<REBUILD>manual</REBUILD><BR>> <PROJECT>Online</PROJECT><BR>>
<LOCALE>fa</LOCALE><BR>> <SOURCES><BR>>
<SOURCE>MySources</SOURCE><BR>> </SOURCES><BR>> </INDEX><BR>>
<BR>> <BR>> The source is<BR>> <INDEXSOURCE><BR>>
<NAME>MySources</NAME><BR>> <INDEXER
class=org.opencms.search.CmsVfsIndexer><BR>> <RESOURCES><BR>>
<RESOURCE>/sites/default/mysite/</RESOURCE><BR>> </RESOURCES><BR>>
<DOCUMENTTYPES-INDEXED><BR>> <NAME>generic</NAME><BR>>
<NAME>xmlpage</NAME><BR>> <NAME>xmlcontent</NAME><BR>>
<NAME>text</NAME><BR>> <NAME>rtf</NAME><BR>> <NAME>pdf</NAME><BR>>
<NAME>msword</NAME><BR>> <NAME>mspowerpoint</NAME><BR>>
<NAME>msexcel</NAME><BR>> <NAME>jsp</NAME><BR>>
<NAME>image</NAME><BR>> <NAME>html</NAME><BR>>
</DOCUMENTTYPES-INDEXED><BR>> </INDEXER><BR>> <BR>>
<BR><BR><BR>_______________________________________________<BR>This mail is
sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please
visit<BR>http://lists.opencms.org/mailman/listinfo/opencms-dev</INDEXSOURCE></BLOCKQUOTE><BR>
<P>
<HR SIZE=1>
<A
href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/pc_mag/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">All
new Yahoo! Mail</A> "The new Interface is stunning in its simplicity and ease
of use." - PC Magazine</BLOCKQUOTE></BODY><!--[object_id=#winterthur.be#]--><P align=left><FONT face=Arial color=#7d7d7d size=2>______________________________________________<BR></FONT><FONT face=Arial color=#7d7d7d size=2></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #7d7d7d; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Winterthur-Europe Insurance - VAT BE 0403.290.168 RPM/RPR </SPAN><?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:City><st1:place><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #7d7d7d; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">BRUSSELS</SPAN></st1:place></st1:City><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #7d7d7d; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">.<BR>This message may contain confidential, proprietary or legally privileged information and is intended only for the use of the addressee named above. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate, copy it in any form or take any action in reliance on it. If you have received this message in error please delete it and any copies of it and notify </SPAN><st1:City><st1:place><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #7d7d7d; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Winterthur</SPAN></st1:place></st1:City><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #7d7d7d; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"> immediately.This e-mail message and any attached files have been scanned for the presence of computer viruses. However, you are advised that you open any attachments at your own risk. <BR>The integrity and security of this message cannot be guaranteed on the Internet.</SPAN><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></FONT></HTML>