Growing up I never imagined I would play bass guitar for the Dave Matthews Band. And indeed it never happened. But I have become a passionate and pretty good web developer. I code mostly in ColdFusion and jQuery. Sam is a DZone MVB and is not an employee of DZone and has posted 16 posts at DZone. You can read more from them at their website. View Full User Profile

Starting Solr for ColdFusion on a Mac

05.24.2011
| 5614 views |
  • submit to reddit
Here is a straightforward way to start Solr when running ColdFusion 9 on a Mac. If it is not running in the ColdFusion Administrator under Data & Services > ColdFusion Collections the following message will appear:

Unable to retrieve collections from any of the Search Services. Please verify that atleast one of ColdFusion Search Services is installed and running.


To get it running run the following two lines in Terminal:

cd /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr
./cfsolr start

Thats for multi-instance installs for ColdFusion 9 standard install it will be:

cd /Applications/ColdFusion9/solr
./cfsolr start

Within seconds Solr will be up and running and collections will show on the page above.

(As a quick note don't delete core0 collection as its needed to get everything up and running.)

References
Published at DZone with permission of Sam Farmer, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Kathy John replied on Tue, 2012/02/21 - 1:35pm

I installed CF 9 multiserver and created a second instance of CF. I see the SOLR folder within the cfusion directory, but I don't see this folder within the second instance's directory. Does SOLR not get setup with each new CF instance created? Is it as simple as copying the folder over to the second instance's directory? Not certain what the best approach is. Any suggestions would be appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.