You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2006/12/11 14:23:21 UTC

[jira] Created: (JCR-669) Move NamespaceMappings/Index from lucene to namespace registry.

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: Tobias Bocanegra


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

        

[jira] Reopened: (JCR-669) Move NamespaceMappings/Index from lucene to namespace registry.

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-669?page=all ]

Tobias Bocanegra reopened JCR-669:
----------------------------------

      Assignee: Marcel Reutegger  (was: Tobias Bocanegra)
             
well, almost :-)

added the new methods to NamespaceRegistryImpl but did not alter indexer code. Assigning to marcel for further processing.

> 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
>
> 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

        

[jira] Resolved: (JCR-669) Move NamespaceMappings/Index from lucene to namespace registry.

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Resolved: (JCR-669) Move NamespaceMappings/Index from lucene to namespace registry.

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-669?page=all ]

Tobias Bocanegra resolved JCR-669.
----------------------------------

    Resolution: Fixed

fixed.
Committed revision 486082.


> 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: Tobias Bocanegra
>
> 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