Using a remote SOLr server with ColdFusion 2016

192 views
Skip to first unread message

Scott Stewart

unread,
Mar 29, 2017, 10:48:18 AM3/29/17
to tac...@googlegroups.com
Hey all, 

Hope all is well with TACFUG. I've got a project here that's got me stumped. We're setting up a cluster of CommonSpot Servers, all running ColdFusion 2016. Because this is a high volume site (http://www.dodea.edu) I wanted to offload the SOLr processing that CommonSpot does to an outboard SOLr box. 

CommonSpot, in version 10 has an option to decouple SOLr searching from ColdFusion, but it requires the SOLr server to reside on the same box as CommonSpot. My thought was to plug the outboard server information into ColdFusion and tell CommonSpot to use the standard ColdFusion search functions...

However there really isn't anything out there on how to set this up, and Adobe is saying that it's unsupported even though the ability to do it is in the admin.

Does anyone have any experience with this?

Thanks

Scott Stewart

charlie arehart

unread,
Mar 31, 2017, 11:29:03 AM3/31/17
to tac...@googlegroups.com

Well, you have multiple things here.

Yes, CF can be set to point to another Solr server (I can’t recall if there may be a limit in Standard vs Enterprise. Could that be what Adobe is getting at?)

As for whether you could tell Commonspot to “use the standard search functions”, that would of course depend on whether such was possible in CS. PaperThin should be able to tell you. They should also be able to help you discern if you can configure CS to let this “decoupling” you say they support not require the Solr server be on the same box as CS. That would seem an unnecessary limitation, and it may not be so much a “requirement” as their default config for such.

To be clear (and as you may know, Scott), Solr is indeed simply a web-based app that CF can talk to, wherever it is, once configured in the CF admin. Unbeknownst to most, the calls one makes in CFML (via cfsearch, cfindex, cfcollection, etc.) really end up just being turned into http calls into the solr server, which in a default CF config is served up via an internal (Jetty) web server and service that runs inside CF. You could put FusionReactor on that Solr deployment and actually see the calls coming into it. And the CF tags know how to format the result that’s returned, also via http. (Some people have used this flexibility to “get around limitations” in CFML’s Solr support, but instead crafting their own cfhttp calls into Solr.)

So my point in the last paragraph is that Solr processing is all just http communications, so again should be doable in any configuration one wanted, as long as the source of the calls (CF or CS) can point to a given destination Solr server.

Hope that’s helpful, or helps you in getting either Adobe or PT to better help you get what you want.

/charlie

--
Upcoming events: http://www.meetup.com/Triangle-Area-ColdFusion-Users-Group/
Follow us on Twitter: @tacfug
---
You received this message because you are subscribed to the Google Groups "TACFUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tacfug+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Stewart

unread,
Mar 31, 2017, 4:15:29 PM3/31/17
to tac...@googlegroups.com
Got it working this afternoon. It all stems around creating a "dummy" collection manually in SOlr, then using the "Add Core" interface in the solr web administrator to map to it. One I did that CommonSpot readily accepted the entries.

To unsubscribe from this group and stop receiving emails from it, send an email to tacfug+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
Upcoming events: http://www.meetup.com/Triangle-Area-ColdFusion-Users-Group/
Follow us on Twitter: @tacfug
---
You received this message because you are subscribed to the Google Groups "TACFUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tacfug+unsubscribe@googlegroups.com.

charlie arehart

unread,
Mar 31, 2017, 5:19:03 PM3/31/17
to tac...@googlegroups.com

 

From: tac...@googlegroups.com [mailto:tac...@googlegroups.com] On Behalf Of Scott Stewart
Sent: Friday, March 31, 2017 03:15 PM
To: tac...@googlegroups.com
Subject: Re: [tacfug] Using a remote SOLr server with ColdFusion 2016

 

Got it working this afternoon. It all stems around creating a "dummy" collection manually in SOlr, then using the "Add Core" interface in the solr web administrator to map to it. One I did that CommonSpot readily accepted the entries.

On Fri, Mar 31, 2017 at 11:29 AM, charlie arehart <charli...@carehart.org> wrote:

<snip>

Reply all
Reply to author
Forward
0 new messages