[opencms-dev] OCMS5 - Lucene indexing of page 'properties' in opencms???

James jim at futurate.com
Tue Mar 22 11:46:57 CET 2005


I have seen, and use, the simple-search.jsp which is included with the
lucene module.

 

The only property I can get to display is 'title'!

 

I have added more properties to be displayed on the search results page (if
only for testing purposes):

Pagecolour, pagetype and region are properties that I have created 

 

            String descrip = doc.get("Description");

            String Keywords = doc.get("Keywords");

            String pagecolour= doc.get("pagecolour");

            String pagetype= doc.get("pagetype");

            String globalnav = doc.get("region");

ALL SHOW NULL!

 

The only things that work are:

hits.score(i);

cms.link(doc.get("abs_path"));

doc.get("title");

 

 

My plan is to create a 'detailed search' page which allows users to choose
from a combination of two results filters (drop-down boxes):

 

1.    filter on media type (e.g. .doc, .pdf, .txt, .html)

2.    filter on page property (e.g. 'pagecolour', 'region')

 

The detailed search would search the index created from the root folder of
the site.

 

 

 

ANY help much much appreciated.

Thankyou

 

 

P.S. This is the lucene part of my registry.xml:

 

<luceneSearch>
   <mergeFactor>100000</mergeFactor>
   <permCheck>true</permCheck</permcheck>
   <indexDir>/opt/luceneindex/</indexDir>
   <analyzer>org.apache.lucene.analysis.standard.StandardAnalyzer</analyzer>
   <subsearch>true</subsearch>
   <project>online</project>
   <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>
 
<class>net.grcomputing.opencms.search.lucene.TaggedPlainDocument</class>
          </fileType>
       </docFactory>
       <docFactory enabled="false" type="jsp">
         <class>net.grcomputing.opencms.search.lucene.JspDocument</class>
       </docFactory>
       <! --   <docFactory enabled="false" type="XML Template"/>   -->
   </docFactories>
   <directories>
       <directory location="/cida/">
         <section>Cida root</section>
         <subsearch>true</subsearch>
       </directory>
   </directories>
   <contentDefinitions>
   </contentDefinitions>
</luceneSearch>

 

 

 

 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Phan Dang Dinh
Sent: 22 March 2005 01:40
To: The OpenCms mailing list
Subject: Re: [opencms-dev] OCMS5 - Lucene indexing of page 'properties'
inopencms???

 

Pls see the sample of lucene module

 

--- James <jim at futurate.com> wrote:

> How do I pick up the 'description' property of my

> opencms pages with Lucene?

> 

>  

> 

> Can I get Lucene to index ALL the properties of

> every page it indexes????

> 

> > 

> 

> _______________________________________________

> 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

 

Send instant messages to your online friends http://uk.messenger.yahoo.com 

 

 

_______________________________________________

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050322/44e2940c/attachment.htm>


More information about the opencms-dev mailing list