[ http://issues.apache.org/jira/browse/JCR-669?page=all ]

Marcel Reutegger resolved JCR-669.
----------------------------------

    Fix Version/s: 1.2
       Resolution: Fixed

The query handler now uses the stable index prefix from the namespace registry. 
This change is backward compatible in a sense that the lucene query handler 
will still use the old mechanism if it discovers an existing 
ns_mappings.properties file in the index directory. A new jackrabbit 
installation will
therefore use the new mechanism while an upgraded jackrabbit installation will 
still use the old mechanism. If you want to use the stable index prefixes from 
the namespace registry in an existing
jackrabbit installation you need to re-index the repository (stop jackrabbit, 
delete the index directories and start jackrabbit again).

Fixed in revision: 486099

> Move NamespaceMappings/Index from lucene to namespace registry.
> ---------------------------------------------------------------
>
>                 Key: JCR-669
>                 URL: http://issues.apache.org/jira/browse/JCR-669
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: indexing
>            Reporter: Tobias Bocanegra
>         Assigned To: Marcel Reutegger
>             Fix For: 1.2
>
>
> The NamespaceMappings class in the indexer is used for generating small 
> prefixes for namespace uris that are stored in the index. This mechanism of 
> stable prefixes could be used in other places as well, for example in the 
> persistence managers.
> Suggest to introduce general methods in the namespace registry:
> int getURIIndex(String uri)
> String getURI(int index)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to