Skip to content

Instantly share code, notes, and snippets.

View andrewcuthill's full-sized avatar

andrewcuthill

  • Sydney, Australia
View GitHub Profile
@tgmweb
tgmweb / ElasticSearch
Created July 18, 2013 17:16
Example CFC for elasticSearch interface
<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>