EXAMPLE 1 - hardcoded size:
#set($searchresults = $estool.search('{ "size": 3, "query": { "query_string" : { "query" : "News.title:*" } }}'))
#foreach($result in $searchresults)
$result.title
#end
EXAMPLE 2 - variable value for size:
#set($theSize = "3")
#set($searchresults = $estool.search('{
Did you try putting it in quotes?
Nathan I. Keiter
|
Lead Network Applications Programmer
|
Benefits Advisory Council Member
|
I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993
--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dotcms/c05d4059-f02b-461e-93bf-a5086b3d6a09%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
Also, what happens if you build the argument JSON outside of the call? Then do $estool.search( $args )
Nathan I. Keiter
|
Lead Network Applications Programmer
|
Benefits Advisory Council Member
|
I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/085afcbb23d940fd81830e9820379e95%40exch13c.ms.gettysburg.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2da579ceb86d4bb8bc4e95ed01f172d8%40exch13c.ms.gettysburg.edu.