Antw: RE: [opencms-dev] Exclude Files from Indexing

Marcus Redeker mredeker at web.de
Thu Oct 9 19:28:01 CEST 2003


Hi,

in the following snippet change the value of location from "/" to
whatever you directory is which you want to have indexed. If you have
more then one you can have the directory tag repeated.


            <directories>
                <directory location="/">
                    <section>Lenord</section>
                    <subsearch>true</subsearch>
                </directory>
            </directories>



--Marcus

> -----Original Message-----
> From: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Björn Schlueter
> Sent: Thursday, October 09, 2003 5:34 PM
> To: opencms-dev at opencms.org
> Subject: Antw: RE: [opencms-dev] Exclude Files from Indexing
> 
> 
> Hi Marcus,
> 
> this is what my registry.xml-file looks like. Can you tell me 
> what I have to insert or to change?
> 
> THX
> Björn
> 
>  <luceneSearch>
>             <mergeFactor>100000</mergeFactor>
>             <permCheck>true</permCheck>
>             <indexDir>/var/opencms_addons/luceneindex/</indexDir>
>             
> <analyzer>org.apache.lucene.analysis.de.GermanAnalyzer</analyzer>
>             <subsearch>true</subsearch>
>             <project>online</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.TaggedPlainDocume
> nt</class>
>                     </fileType>
>                 </plainDocFactory>
>                 <jspDocFactory enabled="true">
>                     
> <class>net.grcomputing.opencms.search.lucene.JspDocument</class>
>                 </jspDocFactory>
>                 <xmlTemplateDocFactory enabled="false"/>
>             </docFactories>
>             <directories>
>                 <directory location="/">
>                     <section>Lenord</section>
>                     <subsearch>true</subsearch>
>                 </directory>
>             </directories>
>         </luceneSearch>
> 
> >>> mredeker at web.de 09.10.2003 15:16:24 >>>
> In the directories section of in "registry.xml" you can 
> specify which VFS directories should be indexed. --Marcus
> 
> > -----Original Message-----
> > From: opencms-dev-admin at opencms.org
> > [mailto:opencms-dev-admin at opencms.org] On Behalf Of Björn Schlueter
> > Sent: Thursday, October 09, 2003 1:30 PM
> > To: opencms-dev at opencms.org 
> > Subject: [opencms-dev] Exclude Files from Indexing
> > 
> > 
> > Hello there,
> > 
> > we are using the Lucene-Module to as our search engine.
> > Unfortunately lucene is indexing all the documentation. Is it 
> > possible to exclude those directories from indexing?
> > 
> > Regards
> > Björn Schlüter
> > 
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list,
> > please visit http://mail.opencms.org/mailman/listinfo/opencms-dev 
> > 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 





More information about the opencms-dev mailing list