[opencms-dev] (no subject)

Андрей Орлов andrey_orlov7 at mail.ru
Fri May 6 15:21:22 CEST 2005


Hi All!

I'm trying to setup search function in Russian language.

Most of my pages have ru locale
I've edited opencms-search.xml

Here is part of it:

		<analyzers>
			<analyzer>
				<class>org.apache.lucene.analysis.standard.StandardAnalyzer</class>
				<locale>en</locale>
			</analyzer>		
			<analyzer>
				<class>org.apache.lucene.analysis.snowball.SnowballAnalyzer</class>
				<stemmer>Russian</stemmer>
				<locale>ru</locale>
			</analyzer>			
		</analyzers>
		<indexes>
			<index>
				<name>Online project (VFS)</name>
				<rebuild>auto</rebuild>
				<project>Online</project>
				<locale>ru</locale>			
				<sources>
					<source>source1</source>
				</sources>		
			</index>
			<index>
				<name>Offline project (VFS)</name>
				<rebuild>auto</rebuild>
				<project>Offline</project>
				<locale>ru</locale>			
				<sources>
					<source>source1</source>
				</sources>		
			</index>	
			<index>
				<name>System folder</name>
				<rebuild>auto</rebuild>
				<project>Online</project>
				<locale>en</locale>			
				<sources>
					<source>source2</source>
				</sources>		
			</index>	
		</indexes>
		<indexsources>				
			<indexsource>
				<name>source1</name>
				<indexer class="org.opencms.search.CmsVfsIndexer" />
				<resources>
					<resource>/sites/desten/</resource>
				</resources>
				<documenttypes-indexed>
	                <name>xmlpage</name>
					<name>xmlcontent</name>
	                <name>page</name>
	                <name>text</name>
	                <name>pdf</name>
	                <name>rtf</name>
	                <name>html</name>
	                <name>msword</name>
	                <name>msexcel</name>
	                <name>mspowerpoint</name>
	                <name>image</name>
	                <name>generic</name>			
				</documenttypes-indexed>				
			</indexsource>
			<indexsource>
				<name>source2</name>
				<indexer class="org.opencms.search.CmsVfsIndexer" />
				<resources>
					<resource>/system/</resource>
				</resources>		
				<documenttypes-indexed>
	                <name>xmlpage</name>
					<name>xmlcontent</name>
	                <name>page</name>
	                <name>text</name>
	                <name>pdf</name>
	                <name>rtf</name>
	                <name>html</name>
	                <name>msword</name>
	                <name>msexcel</name>
	                <name>mspowerpoint</name>
	                <name>image</name>
	                <name>generic</name>
				</documenttypes-indexed>
			</indexsource>	
		</indexsources>	

Then I've built search index from administration search index managment tool.
It has been realy built, I can find it in WEB-INF\index\

But when I try to find something using search index management tool, there is always "0 results found..."

I've tried to do the same without Russian Analyzer and had perfect results.

Help me please.

Thanks in advance,
Andrey Orlov.





More information about the opencms-dev mailing list