Solr and Cloud
(1.5 day session)
Overview
After taking this course you will understand the differences and use-cases for Solr and SolrCloud, create Spatial Search and Function Queries, perform Document Grouping, configure and tune Query Spellchecking and Suggesters. During the second half of the source you will learn how to tune and scale Solr and SolrCloud etc
For whom
The course is designed for technical attendees of any knowledge level and is aimed at those who need to configure, tune and manage Solr and have only basic Solr knowledge. No prior Solr experience is required. Experience with Linux systems is not a must, but basic familiarity with running shell commands (e.g., using curl command) will be good
Course Outline
Solr Architecture
Solr master – slave architecture
SolrCloud architecture
Solr master – slave vs SolrCloud
- Spatial Search
Indexing spatial data
Spatial filters
Distance function queries
Bounding box field
- Documents Grouping
Grouping documents by field value
Grouping documents by function value
Grouping documents by query
Paging in grouped results
Controlling number of groups and documents count
Sorting inside groups
Documents grouping and faceting
Using collapse query parser
Using expand component
- Function Queries
Using function queries
Math function queries
Term function queries
Example use cases
Boosting by using functions
Sorting by function
External file field type
Using external file field type for boosting
Lab
Using efficient range filtering
Sorting on the basis of function value
Including function value in returned documents
Boosting using function value
- Spellchecking
Spellchecker with its own index
File based spellchecker
Index based spellchecker
Building spellchecker
Including spell checking results with queries
Querying spellchecker independently
Maximum number of suggestions
Collation
Controlling collation
Accuracy
Extended results
Lab
Working with Spellchecker configuration
Running queries with Spellchecker
Using various Spellchecker implementations
- Suggesters
What are suggesters
Suggester types
Configuring suggesters
Using different dictionary factories
Lab
Creating suggester configuration for a field
Building suggester dictionary automatically
Creating separate suggester configuration
Using created suggester
- Configuring Solr Internals
General solrconfig.xml section
Replication
Update request processors
Language detection
Configuring logging
Slow query log
Lab
Preparing master – slave replication
Language detection during document indexing
Configuring slow logging
- Tuning Solr
Indexing threads
Indexing buffer size
Auto commit tuning
Caches
Replication throttling
Warming up
Lab
Configuring indexing buffer
Configuring indexing threads
Configuring auto commits
Configuring warming queries
- Scaling Solr & SolrCloud
Solr master & slaves configuration
ZooKeeper role explained
Working with ZooKeeper
Sharding
Using Collections API
Caches in SolrCloud
Aliases
Lab
Creating collections
Creating aliases
Setting up caches for rapidly changing data
Setting up caches for high querying scenarios
- Operations
Running Solr as a service on Linux and Windows systems
Backing up Solr master slave
Backing up SolrCloud
Current cluster state view
Authentication and authorization