jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Perez" <mper...@gmail.com>
Subject Re: Document order enabled by default
Date Thu, 30 Mar 2006 08:04:10 GMT
Sure:
    <SearchIndex>
        .....
        <param name="respectDocumentOrder" value="false"/>
    </SearchIndex>

By default the value is true.

Martin


On 3/30/06, Jean-Baptiste Quenot <jbq@apache.org> wrote:
>
> Hello,
>
> First,  thanks  a lot  for  providing  Jackrabbit.  I'm  currently
> evaluating it for replacing an  XML database that is not providing
> good enough response times.
>
> I used Jackrabbit from the jcr block of Cocoon, imported thousands
> of XML documents using the builtin XML import facility and started
> to write  a query.  At first  glance, the response times  were not
> what I was expecting at all  (40 seconds), as I heard queries were
> based on Lucene.
>
> So after digging/debugging into the  code I noticed Jackrabbit was
> spending an  awful lot of  time in Arrays.sort(), and  appeared to
> use DocOrderNodeIteratorImpl as implementation of NodeIterator.
>
> So I watched the source for lucene.QueryImpl and noticed the use
> of a default implicit order on the search results:
>
>     /**
>      * If <code>true</code> the default ordering of the result nodes is in
>      * document order.
>      */
>     private boolean documentOrder = true;
>
> After switching  off this attribute with  an ugly hack in  my code
> and a patch to QueryImpl, search results dropped to a few hundreds
> milliseconds.
>
> Is there  an easy way  to configure this setting?   Maybe pointing
> out this tip in the FAQ would be great.
>
> TIA,
> --
> Jean-Baptiste Quenot
> http://caraldi.com/jbq/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message