jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Seth <visha...@mastek.com>
Subject RE: How do I configure Index Rules when using OCM
Date Fri, 30 Jan 2009 10:17:15 GMT
Is there a way to know that indexes have been created on rules mentioned as per the config
file?

Regards
Vishal


-----Original Message-----
From: Marcel Reutegger [mailto:marcel.reutegger@gmx.net]
Sent: Wednesday, January 28, 2009 7:04 PM
To: users@jackrabbit.apache.org
Subject: Re: How do I configure Index Rules when using OCM

Vishal Seth wrote:
> Index rule configuration for properties is as follows:
>   <index-rule nodeType="nt:unstructured">
>      <property>id</property>
>   </index-rule>
>   <index-rule nodeType="nt:unstructured">
>      <property>name</property>
>   </index-rule>
>   <index-rule nodeType="nt:unstructured">
>      <property>className</property>
>   </index-rule>
>   <index-rule nodeType="nt:unstructured">
>      <property>path</property>
>   </index-rule>

this won't work. the query handler will always pick the first index-rule that
matches (see also http://wiki.apache.org/jackrabbit/IndexingConfiguration). that
is, if you have a node of type nt:unstructured then always the first index-rule
will be chosen. all other rules will be ignored. I guess what you rather want is:

  <index-rule nodeType="nt:unstructured">
     <property>id</property>
     <property>name</property>
     <property>ocm_classname</property>
     <property>path</property>
  </index-rule>


however I doubt that this will have a significant impact on the startup time of
the repository. do you have profiling data that indicates that startup is slow
due to the size of the index?

regards
 marcel


MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop
and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Mime
View raw message