Hi Shazni, According to current implementation, In AttributeSearchService, we are expecting attribute map and we internally building the solr query according to the attribute map. So from the backend, we need to have attribute Map in Attribute Search Service.
@Sagara, In solr, we define the fields as dynamic fields. for example if it is a single valued field, we saved in solr server as <field_name>_s (here we set the suffix to specify the field as a single valued string field). In Attribute Search Service, we internally building the solr query considering those field convention. So currently it is not possible to support complete solr syntax in Attribute Search. but within the search value, we can have solr syntax as follows, overview_name= aaa OR bbb Thanks Danesh On Fri, May 22, 2015 at 5:58 PM, Shazni Nazeer <[email protected]> wrote: > @Manuranga - Fair question. But that's the way the search attribute > service in the backend expects. Further, the query I have given is > specifically to query a property in the artifact. So specifying > "country=usa", we should internally find out that it's a property that the > user is querying. And for your concern that "convenient method is not that > convenient", that's what the question is all about; whether to keep the > query as it's or use a different syntax and pass the attribute map to the > search service within the method. > > Shazni Nazeer > Mob : +94 777737331 > LinkedIn : http://lk.linkedin.com/in/shazninazeer > Blog : http://shazninazeer.blogspot.com > > On Fri, May 22, 2015 at 5:29 PM, Manuranga Perera <[email protected]> wrote: > >> That convenient method is not that convenient. >> >> Why >> "propertyName=country&rightOp=eq&rightPropertyValue=usa" >> Instead >> "country=usa" >> ? >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
