sergio ramirez

Greenhorn
+ Follow
since Aug 28, 2011
sergio likes ...
IntelliJ IDE Java Linux
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sergio ramirez

Hello Bernard!

Nice question!, *. operator is used to spread all elements in a list...

assert ['cat', 'elephant']*.size() == [3, 8]

while *: is used to spread or combine maps, so you could do something like this:

def argMap = [b:2, c:3, d:4]

fancyMethod(a:1, *:argMap) // You can see this complies the "argument" production in the groovy grammar

You could also see this link http://marc.info/?l=groovy-user&m=126217908601838

Hope this helps!
Regards,
Serch
12 years ago
Hello Dave,

hmmm, have you already tried something like this?




Regards,
Serch
12 years ago
Hello Prabhat,

I personally use ArrayCollection when need to bind data to a datagrid view since if you update the ArrayCollection then datagrid view will update too, for other cases I use simple Array.

This is a good post regarding this topic:
http://www.unitedmindset.com/jonbcampos/2009/04/03/do-i-use-array-or-arraycollection/
12 years ago
Hi Praveen!

Grails searchable plugin uses Lucene's StandardAnalyzer so if you declared index properties as "analyzed" then are lowercased to normalize it, so.. it doesn't matter if you have:

Praveen Kuma race ............................
Praveen Kumar Race ..............................
Praveen race ....................................

they will always be indexed as:

praveenkumarace ............................
praveenkumarrace ..............................
praveenrace ....................................

and your search term will be normalized too.
If you don't want to normalize you could use "not_analyzed" and it's value will reamain verbatim in the index.
I recommend you to read http://grails.org/Searchable+Plugin+-+Analyzers if you want to know more about them.

Regards,
Serch
12 years ago