Re: Strings

Nathan Bubna <[email protected]> Tue, 10 Mar 2015 11:27:43 -0700
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <CAFyaDjEy4t8iuuGE1+mBcpfB2QNO5Zz-BCbVi53d+mHPT=x_+g@mail.gmail.com>
It's fine to use String methods on String variables.

The question is whether $params.q is still a String variable after your
change. And for that, you may have to ask the Solr folks...

On Tue, Mar 10, 2015 at 10:56 AM, Philippe de Rochambeau <[email protected]>
wrote:

> Hello,
>
> I have written a vm template for Solr 4.9 which contains the following
> line:
>
> #set ($temp = $params.q.indexOf("aaa"))
>
> which worked fine until I moved the template to a Solr 5 server.
>
> Is it incorrect to use Java String methods on string variables in Velocity?
>
> Cheers,
>
> Philippe
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>