On Fri, May 22, 2015 at 4:58 PM, Shazni Nazeer <[email protected]> wrote:

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

Depend on use cases we need both of these options, why don't we define an
input flag so that users can include this flag when they want search
results across all asset types,  and if the flag is not presen we restrict
into one media type.

@Danesh, is there any possibility that we can directly use Solr query
syntax[1] here ?

[1] - http://wiki.apache.org/solr/SolrQuerySyntax

Thanks !

>
> Thoughts are welcome.
>
> Shazni Nazeer
> Mob : +94 777737331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>



-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;    http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to