This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Move all data in one field to another. | |
* In the example below we replace a multi cardinality field (field_old_field) | |
* with a single cardinality field (field_new_field). | |
* The data in the first element of the old field becomes the only data in the new field. | |
* | |
* @requires entity module | |
*/ | |
function mymodule_update_7001(&$sandbox) { | |
if (!isset($sandbox['progress'])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent output="false" > | |
<cffunction name="init" access="public" returntype="any" > | |
<!--- this just sets up the CFC with the elasticSearch URL and port ---> | |
<cfargument name="searchEndPoint" type="string" required="true"/> | |
<cfargument name="searchPort" type="string" required="true"/> | |
<cfset variables.searchEndPoint = arguments.searchEndPoint /> | |
<cfset variables.searchPort = arguments.searchPort /> | |
<cfreturn this /> | |
</cffunction> |