[opencms-dev] Search multilanguage site

Mr Alireza Fattahi afattahi at yahoo.com
Sat Jul 8 09:14:33 CEST 2006


Hi,

Thanks for the help.

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>


Regards,
Alireza Fattahi

Christian Steinert <christian_steinert at web.de> wrote: Mr Alireza Fattahi schrieb:
> Hi,
> 
> We have created a multi lingual site from a micro site, based on template one. The search feature works for “en” contents but not for other locales like “fa”. 
> The interesting thing is that every thing works fine, when we try to search a “fa” content in the administrator view by using “Search Module” and “Search” feature.  The contents are found there correctly.
> We are using org.apache.lucene.analysis.standard.StandardAnalyzer and configured opencms-search.xml
> 
> Should we configure any thing for micro site? For example the index or search.index property! ُshould we change site indexes?
> 
> Regards,
> Alireza Fattahi

Microsite or not doesn't matter but you need an individual search index 
for each group of resources that you want to search separately .

Please write a bit more about the paths where your two locales are 
stored and about if you have changed anything in the search configuration.


Maybe you can also post your opencms-search.xml

Regards
Christian

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

 		
---------------------------------
 All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060708/0351e0bf/attachment.htm>


More information about the opencms-dev mailing list