You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/05/27 05:22:00 UTC
[jira] [Commented] (SOLR-13488) Improve supported syntax in
Utils.getObjectByPath()
[ https://issues.apache.org/jira/browse/SOLR-13488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848619#comment-16848619 ]
ASF subversion and git services commented on SOLR-13488:
--------------------------------------------------------
Commit 9d1255a5838493f386754ba1c29a9d7781d0f329 in lucene-solr's branch refs/heads/jira/SOLR-13488 from Noble Paul
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=9d1255a ]
SOLR-13488: refactoring
> Improve supported syntax in 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org