Does Solr Velocity not appreciate setting a String ($temp) to an int
(indexOf) data type?
Barbara Baughman
Systems Analyst
Information Security
972-883-2157
On 3/10/15 3:52 PM, Philippe de Rochambeau wrote:
From memory (I'm not currently at the office), Velocity says that it's found an
"a" where either a comma (?) or a right parenthesis is expected.
If the string within the indexOf method is, say, "ABC", then it will say that it's found
"ABC" instead of a comma or right parenthesis.
If you want, I can give provide accurate examples tomorrow morning when I am
back at work.
Philippe
Le 10 mars 2015 à 20:47, Nathan Bubna <nbu...@gmail.com> a écrit :
When you say "doesn't like either", what do you mean? How can you tell it
isn't working? What output do you get?
On Tue, Mar 10, 2015 at 12:18 PM, Philippe de Rochambeau <phi...@free.fr>
wrote:
Hi Nathan,
I have tried this
#set ($test = "abc"))
#set ($temp = $test.indexOf("a"))
but Solr 5 Velocity doesn't like either.
I will ask the Solr folks, as you've suggested.
Philippe
Le 10 mars 2015 à 19:27, Nathan Bubna <nbu...@gmail.com> a écrit :
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 <phi...@free.fr
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: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org