Whatever message this page gives is out now! Go check it out!
data -[{entity: entity1, score: entity1_score}, {entity: entity2, score: entity2_score}, ..... ]ORMSearchOffline(query_text, entityName, fields_to_be_selected);ORMSearchOffline(query_text, entityName, fields_to_be_selected, fields);ORMSearchOffline(query_text, entityName, fields_to_be_selected, fields, optionMap);Parameter | Description |
query_text | The text to be searched for or a complete Lucene query.For details of Lucene query, see http://lucene.apache.org/core/old_versioned_docs/versions/. |
entityName | Name of the entity to be searched. |
fieldss_to_be_selected | Fields to be returned as keys in the resultant struct. |
fields | Fields in which search has to be performed. |
optionMap | Extra options that can be passed while executing Lucene query. The options can be:
|
ORMSearchOffline('FirstName:"ch*"',"Employee",["id","firstname"]);ORMSearchOffline("ch*","Employee",["FirstName","LastName"],["FirstName"],{sort="salary",maxresults=5,offset=2});<cfset resultObj =ORMSearchOffline('Java Rocks', 'Book', [bookId, summary, Author.name, title],[title, short_summary])>