[ https://issues.apache.org/jira/browse/SOLR-13488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul updated SOLR-13488: ------------------------------ Description: Today the supported paths are in the form of * {{/a/b/c}} : c inside a/b * {{/a/b[0]}} : first element of b * {{/a/b[-1]}} : last element of b we need to add support for the following to improve testing * {{/a/b[@x]/c}} : c where attribute x is present for b * {{/a/b[@x == 'y']/c}} : c where x has a value y in b * {{/a/b[@x != 'y']/c}} : c where x has a value not equals y in b * {{/a/b/$size()}} : size of b where b is a map or collection This is widely used in our tests and this can enable us to write better tests was: Today the supported paths are in the form of * {{/a/b/c}} : c inside a/b * {{/a/b[0]}} : first element of b * {{/a/b[-1]}} : last element of b we need to add support for the following to improve testing * {{/a/b[@x]/c}} : c where attribute x is present for b * {{/a/b[@x == 'y']/c}} : c where x has a value y in b * {{/a/b[@x != 'y']/c}} : c where x has a value not equals y in b * {{/a/b/$size()}} : size of b where b is a map or collection > Improve supported syntax Utils.getObjectByPath() > ------------------------------------------------ > > Key: SOLR-13488 > URL: https://issues.apache.org/jira/browse/SOLR-13488 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Noble Paul > Priority: Major > > Today the supported paths are in the form of > * {{/a/b/c}} : c inside a/b > * {{/a/b[0]}} : first element of b > * {{/a/b[-1]}} : last element of b > we need to add support for the following to improve testing > > * {{/a/b[@x]/c}} : c where attribute x is present for b > * {{/a/b[@x == 'y']/c}} : c where x has a value y in b > * {{/a/b[@x != 'y']/c}} : c where x has a value not equals y in b > * {{/a/b/$size()}} : size of b where b is a map or collection > This is widely used in our tests and this can enable us to write better tests > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org