[ 
https://issues.apache.org/jira/browse/JCR-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545869
 ] 

Marcel Reutegger commented on JCR-1237:
---------------------------------------

> The information is still in the query index, isn't it?

I'm not sure I understand your question. But the document order is never 
available in the index. It is always calculated.

> What should I do if I have a client that mostly doesn't about document order 
> for most queries, but occasionally would like
> to use the ordering within the same workspace?

You would set respectDocumentOrder to true and omit an order by in your query 
to get document order, otherwise you should add an order by @jcr:score. This 
effectively disables document order.

> Change default value for respectDocumentOrder
> ---------------------------------------------
>
>                 Key: JCR-1237
>                 URL: https://issues.apache.org/jira/browse/JCR-1237
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>
> The current default value for the search index configuration parameter 
> respectDocumentOrder is true. Almost all applications are not interested in 
> document order, while this default adds significant overhead to query 
> execution because document order information is present in the index but has 
> to be calculated over the complete result set.
> I propose to change the default value to false and document this change in 
> the 1.4 release notes. If an application relies on document order one can 
> still explicitly set the parameter in the configuration to true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to