Mika,

I committed some changes to the SOLR plugin today that should help.  I
added a FarCry Config for SOLR where you can set the storage path for
your collections.  Do you care to give it another try?  Update from
SVN to get the new bits.

Sean

On Sep 9, 1:10 am, smika <[email protected]> wrote:
> Is there any place i can read on how Solr plugin is being set? I did
> it pretty much same as for Verity, but i am getting:
> Collection path not defined
>     *  C:\inetpub\wwwroot\farcry\plugins\farcrysolr\packages\custom
> \solrService.cfc (line: 21)
>     * C:\inetpub\wwwroot\farcry\plugins\farcrysolr\webskin
> \farSolrCollection\edit.cfm (line: 36)
>     * C:\inetpub\wwwroot\farcry\core\packages\fourq\fourq.cfc (line:
> 416)
>     * C:\inetpub\wwwroot\farcry\core\packages\fourq\fourq.cfc (line:
> 308)
>     * C:\inetpub\wwwroot\farcry\core\webtop\conjuror\invocation.cfm
> (line: 152)
>
> Although in my _serverSpecificVars i have it set in this way:
>
> <farcry:machineSpecific name="MIKA">
>   <cfparam name="session.language" default="russian"/>
>   <cfset application.defaultFilePath ="C:\Inetpub\wwwroot\arminfo
> \files"/>
>   <cfset application.feedPath ="C:\Inetpub\wwwroot\arminfo\feeds"/>
>   <cfset application.stplugins.farcrysolr.localhost = "MIKA" />
>     <cfset pluginLoaded=true />
>   <cfset machineName = createObject("java",
> "java.net.InetAddress").localhost.getHostName() />
>
>   <!--- set up plugin config --->
> <cfif NOT structkeyExists(application.stplugins, "farcrysolr")>
>         <cfset application.stplugins.farcrysolr = structNew() />
> </cfif>
>
> <!--- set up solr service --->
> <cfif NOT structkeyExists(application.stplugins.farcrysolr,
> "oSolrConfig")>
>         <cftry>
>                 <cfset
> application.stplugins.farcrysolr.osolrConfig=createobject("component",
> "farcry.plugins.farcrysolr.packages.custom.solrConfig").init() />
>                 <cfcatch type="any">
>                         <!--- warn that plugin is not installed.. but don't 
> blow up --->
>                         <cftrace type="warning" text="Problem initialising 
> farcrysolr
> plugin. Confirm types have been deployed." />
>                         <cfset 
> application.coapi.COAPIUTILITIES.unloadPlugin("farcrysolr") /
>
>                         <cfset pluginLoaded=false />
>                 </cfcatch>
>         </cftry>
> </cfif>
>
> <!--- continue only if plugin config correct --->
> <cfif pluginLoaded>
> <!--- set solr collection storage path --->
>         <cfif NOT structkeyExists(application.stplugins.farcrysolr,
> "storagePath")>
>                 <!--- set default storage path --->
>                  <cfset
> application.stplugins.farcrysolr.osolrConfig.setStoragePath(storagePath="C:
> \inetpub\wwwroot\arminfo\collections") />
>         <cfelse>
>                 <!--- set custom storage path --->
>                 <cfset
> application.stplugins.farcrysolr.osolrConfig.setStoragePath(storagePath=app 
> lication.stplugins.farcrysolr.storagePath) /
>
>         </cfif>
>
>         <!--- set supported hosts --->
>         <cfif NOT structkeyExists(application.stplugins.farcrysolr,
> "lhosts")>
>                 <!--- set default host --->
>                 <cfset application.stplugins.farcrysolr.lhosts =
> createObject("java", "java.net.InetAddress").localhost.getHostName() /
>
>         </cfif>
> </cfif>
> </farcry:machineSpecific>
>
> What i am doing wrong?
>
> Thanks,
> Mika

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to