Searches for given text in specific properties or entities.
ormSearch('query_text', 'entityName')
ormSearch('query_text', 'entityName', fields)
ormSearch('query_text', 'entityName', fields, optionMap);
→ returns struct
ORM search based on Lucene query.
ormSearch('FirstName:ch*','Employee');
ormSearch('ch*','Employee',['FirstName']);
objs = ormSearch('FirstName:ch*','Employee',[],{sort='salary',maxresults=5,offset=2});
ORM search on multiple entities.
ormSearch('john*','DeveloperEntity,UserEntity',['firstname']);
ORM search on all subentities based on Lucene query
ormSearch('john*','EmployeeEntity',['FirstName']);
ORM search in relationships
ormSearch('CategoryID.CategoryName:In*','cproducts',[]);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.