You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by carlossg <gi...@git.apache.org> on 2014/11/24 20:04:15 UTC

[GitHub] archiva pull request: [MRM-1390] Add REST methods to search JCR st...

GitHub user carlossg opened a pull request:

    https://github.com/apache/archiva/pull/14

    [MRM-1390] Add REST methods to search JCR store for generic metadata and properties

    Add REST methods to search JCR store for generic metadata and properties
    
    Added REST methods:
    
    artifactsByProjectVersionMetadata/{key}/{value}
    artifactsByMetadata/{key}/{value}
    artifactsByProperty/{key}/{value}
    searchArtifacts/{text}
    searchArtifacts/{key}/{text}
    
    In JCR implementation When searching into any property (key = nil) we can't do exact searchs
    
    Some caveats with Cassandra implementation:
    We can't search artifacts by any (wildcard) property, so searchArtifacts(text,...) just calls getArtifactsByMetadata
    The exact parameter is ignored as we can't do non exact searches in Cassandra
    
    
    Cassandra: rename Metadata Facet column 'key' to 'facetKey'
    The column 'key' can't be queried in Cassandra
    Probably because 'key' is reserved for the element key or a limitation in Hector


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/carlossg/archiva metadata-search

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/archiva/pull/14.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14
    
----
commit eeb51f8c35139d838436623e07b14b22ce1a071f
Author: Carlos Sanchez <ca...@apache.org>
Date:   2014-11-24T18:47:57Z

    Commit f4f7c97 changed the name of metadata facet key and value columns
    
    Restore to the previous one

commit bbb7e6cbca4b52bac06ef9b3990618b75c299e73
Author: Carlos Sanchez <cs...@maestrodev.com>
Date:   2014-11-05T19:11:08Z

    [MRM-1390] Add REST methods to search JCR store for generic metadata and properties
    
    Added REST methods:
    
    artifactsByProjectVersionMetadata/{key}/{value}
    artifactsByMetadata/{key}/{value}
    artifactsByProperty/{key}/{value}
    searchArtifacts/{text}
    searchArtifacts/{key}/{text}
    
    In JCR implementation When searching into any property (key = nil) we can't do exact searchs

commit f10439914ad6f1fdbfd887fdad7c4f073513bd5c
Author: Carlos Sanchez <ca...@apache.org>
Date:   2014-11-24T09:54:32Z

    [MRM-1390] Bump version to 2.2

commit ac100c1cecce80736703f49ada9b0eb5cbe5a279
Author: Carlos Sanchez <ca...@apache.org>
Date:   2014-11-23T10:34:24Z

    [MRM-1390] Implement search methods for generic metadata and properties in Cassandra store
    
    Some caveats with Cassandra implementation:
    
    We can't search artifacts by any (wildcard) property, so searchArtifacts(text,...) just calls getArtifactsByMetadata
    The exact parameter is ignored as we can't do non exact searches in Cassandra

commit 2fd2a550dd334e068f4d10da6d9d3a1a3e11c06a
Author: Carlos Sanchez <ca...@apache.org>
Date:   2014-11-24T19:00:03Z

    [MRM-1390] Cassandra: rename Metadata Facet column 'key' to 'facetKey'
    
    The column 'key' can't be queried in Cassandra
    Probably because 'key' is reserved for the element key or a limitation in Hector

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] archiva pull request: [MRM-1390] Add REST methods to search JCR st...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/archiva/pull/14


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] archiva pull request: [MRM-1390] Add REST methods to search JCR st...

Posted by olamy <gi...@git.apache.org>.
Github user olamy commented on a diff in the pull request:

    https://github.com/apache/archiva/pull/14#discussion_r20916778
  
    --- Diff: archiva-cli/pom.xml ---
    @@ -22,7 +22,7 @@
       <parent>
         <groupId>org.apache.archiva</groupId>
         <artifactId>archiva</artifactId>
    -    <version>2.1.2-SNAPSHOT</version>
    +    <version>2.2-SNAPSHOT</version>
    --- End diff --
    
    we started using a 3 digits version :-)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---