Hi all, In G-Reg we have searching capabilities of artifacts on different attributes. This includes name of the artifact, path, comments, tags, property name/value etc. This search capability is backed by the apache solr in G-Reg 5.0.0. Therefore it's also advantageous to have this full searching capability in the enterprise store/publisher.
As ES end deals with the GovernanceArtifactManager's and GovernanceArtifacts, the search results need to be returned as GovernanceArtifacts instead as raw registry resources or registry resource paths. In GovernanceUtils there's a utility method to achieve this, namely findGenericArtifacts which expects a criteria map, a governance registry instance and the media type. The criteria has to be passed as expected name values. It would also be convenient to get the criteria as a String, hence we have thought to implement another convenience method to take the criteria as a string. The query needs to be sent as it's expected by the G-Reg search attribute service. An example search for a property named "country" with the value "usa" would be, propertyName=country&rightOp=eq&rightPropertyValue=usa Looking for artifacts with the tag, say, "movie", the query would be, tags=movie The query string can be as it is specified as above or it could be changed for something else and could be handled inside the method to create the query parameters as expected by attribute search service. We can also restric the search for a particular media-type in this method or allow a global search of all media-types. Thoughts are welcome. Shazni Nazeer Mob : +94 777737331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
