Re: Problems with Expression.match()

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jun 10 2009 - 11:26:40 EDT

  • Next message: Øyvind Harboe: "Re: Problems with Expression.match()"

    On Jun 5, 2009, at 11:43 AM, Øyvind Harboe wrote:

    > 1. I can't use expression.match() because it will fail when the
    > expression contains
    > an array in the path. I.e. matchExp(role.members.user, user) here
    > "members"
    > will return a list, and this causes an exception for .match(),
    > whereas it works
    > fine in a query.

    Yeah, this is a known limitation for in memory processing. We probably
    even have a Jira to fix it.

    > 2. In the above statement I don't know how to add a andExp() to only
    > return
    > "this", so I get a bigger query result than I need + unecessary post
    > processing.
    > I've run into this problem previously as well, without finding an
    > elegant solution.

    Not sure I understand this.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jun 10 2009 - 11:27:18 EDT