I'm searching for a way to do some string manipulation in RQL. I have a string "xxx.yyy.zzz" and I would like to display this zzz. I found substr function but I cannot find something like lastindexof?
I'm searching for a way to do some string manipulation in RQL. I have a string "xxx.yyy.zzz" and I would like to display this zzz. I found substr function but I cannot find something like lastindexof?
var query = from user in session.Query<User>()
select new
{
Location = RavenQuery.Raw<int>("user.Name.lastIndexOf('x')");
};