SolrCloud setup on Mac
SolrCloud configuration – 2 shards X 2 replicas
- Download Solr(see previous Solr 6.4.1 and unzip or untar to a directory.
- I’ve installed Solr in my Mac’s home dir ~/solr-6.4.1
- Ensure JDK 1.8 is available in your command line.
- Check with java -version, Solr 6.x works only with JDK 1.8.
- For this setup, I want to use ZK ensemble (instead of local ZK) just as we would in a production setup.
Start ZK nodes (see the previous post)
Create solr.home (not to be confused with install dir) for each node. I’m creating this in ~ dir as well.
SolrCloud boot sequence – starting each node in numerical order.
Start node1 in cloud mode. Each step could be packed into .sh file
Following is boot sequence of node2, node3 & node4 in a single listing
At this point accessing http://localhost:8983/solr/#/~cloud in the browser does not display ‘cloud’ configuration – because there are no collections created, yet.
Note the shards, replication facto,-d option for tech-products collection.
Accessing Solr console http://localhost:8983/solr/#/~cloud should display 2X2 setup.
Using json.facet API, find top 5 categories and return a number of products in-stock and out-of-stock.
Note the formatting allowed by json.facet structure. Its clean, human readable, easy to understand & debug.
I’ve got above curl command working as is because –data-binary ‘<solr_query>’ allows indenting your input on the command line.
Contact us if your organization needs assistance with Solr search.
Explore Additional Resources
Learn how you can select the best Digital Experience platform for your business.
If you’d like to learn more about Adobe Experience Manager, visit our Adobe Practice.
GET HELP FROM OUR EXPERTS
Over the past 20 years, we have completed thousands of digital projects globally. We have one of the largest and deepest multi-solutions digital consulting teams in the world. Our proprietary processes and years of Digital Experience expertise have earned us a 97% customer satisfaction rating with our clients ranging from Global Fortune 1000 to Mid-Market Enterprises, leading educational institutions, and Non-Profits.
Contact us to know about how SAP FICO can make ledger management easier for you.
About TA Digital
TA Digital is the only global boutique agency that delivers the “best of both worlds” to clients seeking to achieve organizational success through digital transformation. Unlike smaller, regional agencies that lack the ability to scale or large organizations that succumb to a quantity-over-quality approach, we offer resource diversity while also providing meticulous attention to the details that enable strategic success.
Over the past 20 years, TA Digital has positioned clients to achieve digital maturity by focusing on data, customer-centricity and exponential return on investment; by melding exceptional user experience and data-driven methodologies with artificial intelligence and machine learning, we enable digital transformations that intelligently build upon the strategies we set into motion. We are known as a global leader that assists marketing and technology executives in understanding the digital ecosystem while identifying cultural and operational gaps within their business – ultimately ushering organizations toward a more mature model and profitable digital landscape.
Recognized in 2013, 2014, 2015, and 2019 Inc. 5000 list as one of the most successful technology companies in the United States, TA Digital is pleased also to share high-level strategic partnerships with world class digital experience platform companies like Adobe, SAP and Salesforce and possess global partnerships with industry leaders such as Sitecore, Episerver, Elastic Path, BigCommerce, AWS, Azure and Coveo.