New collection functions from ACF10

Description

ACF 10 introduced new functions for collections, as described in
http://www.carehart.org/presentations/Whats_New_in_CF10_for_CFSCRIPT_coders.pdf
(page 21).

I have been using these functions with ACF, but when trying to switch to Lucee I found that "new Collection()" was not working.
I feel like this is a feature request as well as a compatibility issue, as these functions are really convenient.

Activity

Damien 
14 March 2018 at 19:11

Some other related constructors I am using are Index and Search. I am not seeing them in ComponentFactory.java.

They are described in the PDF I linked to initially.

Sample usage:
var index = new Index(collection="librarycollection", type="custom");
index.update(argumentCollection=args);
var search = new Search(collection="librarycollection");
var searchQuery = search.search(criteria=query, maxRows=100);

Damien 
14 March 2018 at 18:23

I would like to try it too, but I have not managed to build Lucee 5.3 from the github source. Is there a place where I could grab a compiled version, in the same way as I would for a release with http://release.lucee.org/rest/update/provider/loader/<version> ? I am only seeing snapshots for 5.2...

Pothys - MitrahSoft 
14 March 2018 at 14:49

Hi ,

I've added collection component in lucee 5.3 branch. Please check that.

Pull Request: https://github.com/lucee/Lucee/pull/415

Zac Spitzer 
22 February 2018 at 00:04

I've just added a Search category to Lucee docs https://github.com/lucee/lucee-docs/pull/393

Pothys - MitrahSoft 
21 February 2018 at 15:58

I've added test case for this ticket & confirmed the issue happened. In lucee it doesn't support for the new collection() in inside the script, but ACF does it from ACF 10.

Pull request: https://github.com/lucee/Lucee/pull/401

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 20 February 2018 at 14:40
Updated 3 April 2018 at 12:07