SlideShare a Scribd company logo
Solr
What is Solr?
•
•
•
•
•
•

Fulltext Search Index
Based on Lucene
Fast Indexing
Fast Retrieval
Wide Range of Features
Extendibility
Features
•
•
•
•
•

Distributed search
Function queries
Highlighting
Faceted search
Autocomplete
Architecture
Your App
SolrJ

GET

Servlets

Solr

Lucene
Solr Queries
• http://localhost:8983/solr/select/?in
dent=on&q=video&fl=name,id

• http://localhost:8983/solr/select/?in
dent=on&q=video&sort=price%20de
sc&fl=name,id,price
Query Syntax
•
•
•
•
•
•
•

name:(Ivo)
name:(+Ivo +Lasek)
name:(+Ivo -Lasek) AND age:[* TO 30]
name:(“Ivo Lasek”)
description:("more traffic between solr" ~2)
title:foo*
timestamp:[* TO NOW]
Solr Documents – Index Structure
<fields>
<field name="id" type="string"
indexed="true" stored="true"
required="true" />
<field name="name" type="textgen"
indexed="true" stored="true"/>
...
</fields>
547 <fieldType name="text_general_rev" class="solr.TextField"
positionIncrementGap="100">
548
<analyzer type="index">
549
<tokenizer class="solr.StandardTokenizerFactory"/>
550
<filter class="solr.StopFilterFactory"
ignoreCase="true" words="stopwords.txt"
enablePositionIncrements="true" />
551
<filter class="solr.LowerCaseFilterFactory"/>
552
<filter class="solr.ReversedWildcardFilterFactory"
withOriginal="true"
553
maxPosAsterisk="3" maxPosQuestion="2"
maxFractionAsterisk="0.33"/>
554
</analyzer>
555
<analyzer type="query">
556
<tokenizer class="solr.StandardTokenizerFactory"/>
557
<filter class="solr.SynonymFilterFactory"
synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
558
<filter class="solr.StopFilterFactory"
ignoreCase="true" words="stopwords.txt"
enablePositionIncrements="true" />
559
<filter class="solr.LowerCaseFilterFactory"/>
560
</analyzer>
561
</fieldType>
Multiple Cores
• One core vs. multiple cores
– Instantiating cores (config files, solr.xml)

• Data loading
– Insert/Update
– Commit
– Optimize

• Switching cores
Dynamic fields
<dynamicField
name="*_i"
type="integer"
indexed="true"
stored="true"/>
Plugins
Request Processing
SolrRequestHandlerą
SearchComponent
QParserPlugin
ValueSourceParser
Highlighting
SolrFragmenter
SolrFormatter
UpdateRequestProcessorFactory
QueryResponseWriter
Similarity
CacheRegenerator

Fields
Analyzer
Tokenizer and TokenFilter
FieldType

Internals
SolrCache
SolrEventListener
UpdateHandler
Dismax Search
• qf – Query fields
qf="fieldOne^2.3 fieldTwo fieldThree^0.4”

• mm – Minimum should match
3<90%

• bf – boost Functions
recip(rord(myfield),1,2,3)^1.5

http://wiki.apache.org/solr/DisMax
Faceted Search
•
•

&q=*:*&facet=true&facet.field=cat
&q=ipod&facet=true&facet.query=price:[0 TO
100]&facet.query=price:[100 TO *]
Autosuggestor

http://wiki.apache.org/solr/Suggester#SearchHa
ndler_configuration
www.sortivo.cz
info@sortivo.cz
@sortivo

More Related Content

PPTX
Apache Solr Workshop
PDF
Apache Solr! Enterprise Search Solutions at your Fingertips!
PDF
Lucene for Solr Developers
KEY
Apache Solr - Enterprise search platform
PPT
Enterprise search in_drupal_pub
PDF
Faster Data Analytics with Apache Spark using Apache Solr - Kiran Chitturi, L...
PPTX
Scaling Solr with Solr Cloud
PDF
Solr Flair
Apache Solr Workshop
Apache Solr! Enterprise Search Solutions at your Fingertips!
Lucene for Solr Developers
Apache Solr - Enterprise search platform
Enterprise search in_drupal_pub
Faster Data Analytics with Apache Spark using Apache Solr - Kiran Chitturi, L...
Scaling Solr with Solr Cloud
Solr Flair

Viewers also liked (20)

ODP
Search Lucene
PDF
Introduction To Apache Lucene
PDF
Architecture and implementation of Apache Lucene
PDF
Devinsampa nginx-scripting
PDF
Munching & crunching - Lucene index post-processing
PPTX
Index types
PDF
Text Indexing / Inverted Indices
PDF
From Lucene to Elasticsearch, a short explanation of horizontal scalability
PDF
Lucene
PPT
Lucene and MySQL
PPT
Lucandra
PPT
Inverted index
PPT
Intelligent crawling and indexing using lucene
PPT
An introduction to inverted index
PDF
Apache Solr/Lucene Internals by Anatoliy Sokolenko
PDF
Berlin Buzzwords 2013 - How does lucene store your data?
PDF
Introduction to solr
PDF
Architecture and Implementation of Apache Lucene: Marter's Thesis
PPT
Lucene Introduction
ODP
The search engine index
Search Lucene
Introduction To Apache Lucene
Architecture and implementation of Apache Lucene
Devinsampa nginx-scripting
Munching & crunching - Lucene index post-processing
Index types
Text Indexing / Inverted Indices
From Lucene to Elasticsearch, a short explanation of horizontal scalability
Lucene
Lucene and MySQL
Lucandra
Inverted index
Intelligent crawling and indexing using lucene
An introduction to inverted index
Apache Solr/Lucene Internals by Anatoliy Sokolenko
Berlin Buzzwords 2013 - How does lucene store your data?
Introduction to solr
Architecture and Implementation of Apache Lucene: Marter's Thesis
Lucene Introduction
The search engine index
Ad

Similar to Solr (20)

PDF
Solr Powered Lucene
PDF
Solr search engine with multiple table relation
PDF
Apache Solr crash course
PDF
Meet Solr For The Tirst Again
PPTX
Self-learned Relevancy with Apache Solr
PDF
Introduction to Solr
PPTX
20130310 solr tuorial
PDF
Introduction to Solr
PDF
Rapid Prototyping with Solr
PDF
What's New in Solr 3.x / 4.0
PDF
Rapid Prototyping with Solr
PDF
"Solr Update" at code4lib '13 - Chicago
PDF
[LDSP] Solr Usage
PPTX
Solr introduction
PPTX
Solr Search Engine: Optimize Is (Not) Bad for You
PPTX
The Apache Solr Smart Data Ecosystem
PPTX
Building Search & Recommendation Engines
KEY
ApacheCon Europe 2012 -Big Search 4 Big Data
PDF
Understanding the Solr security framework - Lucene Solr Revolution 2015
Solr Powered Lucene
Solr search engine with multiple table relation
Apache Solr crash course
Meet Solr For The Tirst Again
Self-learned Relevancy with Apache Solr
Introduction to Solr
20130310 solr tuorial
Introduction to Solr
Rapid Prototyping with Solr
What's New in Solr 3.x / 4.0
Rapid Prototyping with Solr
"Solr Update" at code4lib '13 - Chicago
[LDSP] Solr Usage
Solr introduction
Solr Search Engine: Optimize Is (Not) Bad for You
The Apache Solr Smart Data Ecosystem
Building Search & Recommendation Engines
ApacheCon Europe 2012 -Big Search 4 Big Data
Understanding the Solr security framework - Lucene Solr Revolution 2015
Ad

Recently uploaded (20)

PPTX
OMC Textile Division Presentation 2021.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
August Patch Tuesday
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
1. Introduction to Computer Programming.pptx
OMC Textile Division Presentation 2021.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Reach Out and Touch Someone: Haptics and Empathic Computing
Tartificialntelligence_presentation.pptx
Machine Learning_overview_presentation.pptx
August Patch Tuesday
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectroscopy.pptx food analysis technology
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Digital-Transformation-Roadmap-for-Companies.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
MIND Revenue Release Quarter 2 2025 Press Release
1. Introduction to Computer Programming.pptx

Solr