[opencms-dev] Lucene Search 1.4 - don't index certain files

Trevor Lee Trevor.Lee at 4Loop.com.au
Wed Nov 12 05:24:01 CET 2003


Hi

Thanks Stephan for that.

One other thing, is it possible to tell lucene to NOT index certain files by
specifying their names/locations?
If so, how?

Thanks in advance for your help.

Cheers
Trevor

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]On Behalf Of Hartmann, Waehrisch &
Feykes GmbH
Sent: Tuesday, November 11, 2003 8:13 PM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Tagging JSP files using Lucene Search 1.4


Hi Trevor,

you could try the TaggedPlainDocument factory for jsps.

Bye,
Stephan

----- Original Message -----
From: "Trevor Lee" <Trevor.Lee at 4Loop.com.au>
To: <opencms-dev at opencms.org>
Sent: Tuesday, November 11, 2003 6:34 AM
Subject: [opencms-dev] Tagging JSP files using Lucene Search 1.4


> Hi
>
> I was wondering how do I modify the registry.xml file so that it tags jsp
> files as well?
> Any urgent help in this matter would be greatly appreciated.
>
> Currently i have the following in my registry.xml:
>             <docFactories>
>                 <docFactory enabled="true" type="page">
>
> <class>net.grcomputing.opencms.search.lucene.PageDocument</class>
>                 </docFactory>
>                 <docFactory enabled="true" type="plain">
>                     <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>
>                 </docFactory>
>                 <docFactory enabled="true" type="binary">
>
> <class>net.grcomputing.opencms.search.lucene.BodylessDocument</class>
>                 </docFactory>
>                 <docFactory enabled="true" type="jsp">
>
> <class>net.grcomputing.opencms.search.lucene.JspDocument</class>
>                 </docFactory>
>                 <docFactory enabled="true" type="news">
>
> <class>net.grcomputing.opencms.search.lucene.NewsDocument</class>
>                 </docFactory>
>                 <docFactory enabled="false" type="XML Template"/>
>             </docFactories>
>             <contentDefinitions>
>                 <contentDefinition type="news">
>
> <class>com.opencms.modules.homepage.news.NewsContentDefinition</class>
>
>
<initClass>net.grcomputing.opencms.search.lucene.NewsInitialization</initCla
> ss>
>                     <listMethod name="getSortedList">
>                         <param type="java.lang.String"/>
>                     </listMethod>
>                     <!-- <listMethod name="getNewsList">
>                         <param type="java.lang.Integer">1</param>
>                         <param type="java.lang.String">-1</param>
>                     </listMethod>
> -->
>                     <!-- <page
> uri="/SoftwareMark/auth/news/news.jsp?__element=entry">
>                         <param method="getIntId" name="id"/> -->
>                     <page uri="/SoftwareMark/auth/news/news.jsp">
>                         <param method="getIntId" name="id"/>
>                     </page>
>                 </contentDefinition>
>             </contentDefinitions>
>
> Thanks in advance
>
> Cheers
> Trevor
>
> _______________________________________________
> 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