2. Install Apache Solr in
windows
• Go to cmd prompt and check for JRE with correct
version.
If JRE is available in your system it will show you the
version. If not then you have to install JRE
• Download Solr
http://www.apache.org/dyn/closer.lua/lucene/solr/
7.6.0
• Unzip the folder , it will look as like below snapshot
3. How to start
Apache Solr
Open cmd prompt and go to Apache Solr bin folder location and
use this command binsolr.cmd start
6. Apache Solr Vs Elastic
Search
• Solr
Your team consists mainly of Java programmers
You're already using Zookeeper in your stack
You're already using Java in your stack
You are building a search application that has specific and
nuanced relevancy requirements
You are building an ecommerce, job, or product search engine
• Elastic Search
our team consists mainly of Ruby/PHP/Python/full stack
programmers (and your application does not have specific and
nuanced relevancy requirements)
You live and breathe JSON
You already use Kibana/ELK for managing your logs
Your application is analytics-heavy
7. Basic Solr
Commands….
Strat – solr.cmd start
Stop - solr.cmd stop -p 8983
Status - solr status
Create core directories - solr create -c mainDir
Create Solr core - solr create_core -c sample-items
Update xml file in server - java -Dc=sample-items -jar post.jar
*.xml.
Update csv file in server - java -Dc=sample-items -
Dtype=application/csv -jar post.jar sample.csv
8. Solar Dashboard
View
• List of created core and
directors will be available in
drop down
• Select the core and do query
operation
9. Solr
Dashboard
Function
q year: 2011 query string to filter the csv file
fq variable:activity , industry_name_ANZSIC:mining .Filter can be achived based on the variabl
e and data’s.
sort value asc , sorting by value field using ascending order
fi industry_code_ANZSIC,year,variable,industry_name_ANZSIC,value,id , field list to display