[opencms-dev] Search multilanguage site
Christian Steinert
christian_steinert at web.de
Sat Jul 8 17:07:02 CEST 2006
Mr Alireza Fattahi schrieb:
> Hi,
>
> Thanks for the help.
>
What do you expect?
Template one will create a list box with one entry for each search index.
But it seems that you have created only one search index.
It would be better to create two index sources - one for en and one for fa
Then for each index sources, you create a search index.
These search indexes should then also be available in template one, I think.
hth
christian
> The site structre is:
> MySite
> en
> folder1
> folder2
> fa
> folder1
> folder2
>
> There are some files; and we set the local property of en and fa folders to en and fa.
>
> The analyzer is:
> <analyzer>
> <class>org.apache.lucene.analysis.standard.StandardAnalyzer</class>
> <locale>fa</locale>
> </analyzer>
>
> The index is
> <index>
> <name>MySite</name>
> <rebuild>manual</rebuild>
> <project>Online</project>
> <locale>fa</locale>
> <sources>
> <source>MySources</source>
> </sources>
> </index>
> </indexes>
>
> The source is
> <indexsource>
> <name>MySources</name>
> <indexer class="org.opencms.search.CmsVfsIndexer"/>
> <resources>
> <resource>/sites/default/mysite/</resource>
> </resources>
> <documenttypes-indexed>
> <name>generic</name>
> <name>xmlpage</name>
> <name>xmlcontent</name>
> <name>text</name>
> <name>rtf</name>
> <name>pdf</name>
> <name>msword</name>
> <name>mspowerpoint</name>
> <name>msexcel</name>
> <name>jsp</name>
> <name>image</name>
> <name>html</name>
> </documenttypes-indexed>
> </indexsource>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060708/9f8271da/attachment.bin>
More information about the opencms-dev
mailing list