[opencms-dev] Lucene example search doesn't find anything
M Butcher
mbutcher at grcomputing.net
Sat Feb 28 00:24:01 CET 2004
How many files are in your /test/ directory? What types of files are
they? How many files does the log file say are processed by Lucene?
Matt
Steffen Valentin wrote:
> Hello group!
>
> I've got major problems with searching in Opencms!
> I installed the lucene module and configured the system as described in
> the readme.txt
> Then I launched indexing and the indexes are created!
> But now when I try to search with the example_search.jsp I allways get
>
>
>
>
> Your search found no matches. Please try again.
>
>
> as result!
>
> What did I wrong or what could be a solution to my problem?
>
> Here is an exerpt of my registry.xml
>
>
> <UseWpPicturesFromVFS>false</UseWpPicturesFromVFS>
>
> <searchbylucene>on</searchbylucene>
>
> <history>
>
> <enabled>true</enabled>
>
> <weeks/>
>
> <deleteversions>false</deleteversions>
>
> </history>
>
> <tempfileproject>3</tempfileproject>
>
> <luceneSearch>
>
> <mergeFactor>100000</mergeFactor>
>
> <permCheck>true</permCheck>
>
> <indexDir>/opt/tomcat-4.1.29/webapps/opencms5/index/</indexDir>
>
> <analyzer>org.apache.lucene.analysis.de.GermanAnalyzer</analyzer>
>
> <subsearch>true</subsearch>
>
> <project>offline</project>
>
> <docFactories>
>
> <pageDocFactory enabled="true">
>
> <class>net.grcomputing.opencms.search.lucene.PageDocument</class>
>
> </pageDocFactory>
>
> <plainDocFactory enabled="true">
>
> <fileType name="plaintext">
>
> <extension>.txt</extension>
>
> <class>net.grcomputing.opencms.search.lucene.PlainDocument</class>
>
> </fileType>
>
> <fileType name="taggedtext">
>
> <extension>.html</extension>
>
> <extension>.htm</extension>
>
> <extension>.xml</extension>
>
> <!-- This will strip tags before processing -->
>
> <class>net.grcomputing.opencms.search.lucene.TaggedPlainDocument</class>
>
> </fileType>
>
> </plainDocFactory>
>
> <jspDocFactory enabled="true">
>
> <class>net.grcomputing.opencms.search.lucene.JspDocument</class>
>
> </jspDocFactory>
>
> <xmlTemplateDocFactory enabled="false"/>
>
> </docFactories>
>
> <directories>
>
> <directory location="/test/">
>
> <section>Test</section>
>
> <subsearch>true</subsearch>
>
> </directory>
>
> </directories>
>
> </luceneSearch>
>
> </system>
>
>
>
> Thanks in advance! Steffen
>
More information about the opencms-dev
mailing list