SlideShare a Scribd company logo
1 of 21
Download to read offline
Prepared by
Nithin S, Sajin TM
Digital Brand Group
 Apache solr is a search server written in Java
using the java search library “lucene”.
 Open source
 Get results using web service as JSON/XML
 UTF-8 support
 Ebay
 Hp
 Guardian
 Cisco
 At&t
 Intoit
 Ford
 http://wiki.apache.org/solr/PublicServers
 Text based library in Java
 Fast , feature rich with active apache
development community
 Inverted Index mechanism - Index the
content related to the terms/words
Server
 Solr 4.3.0
 Java server containers ( Tomcat/Jetty Servers )
 Java 1.6 and above
Client
 Any system which can post and get data through
http
Coffee at DBG- Solr introduction
 Schema – can consider as a db table
 Core - schema container
 Collection – multiple core handling
 DIH - Data import handler
 Request handler - StandardRequestHandler ,
DisMaxRequestHandler (multiple fields),
IndexInfoRequestHandler
 Response handler - xml , json , python,ruby
Start Solr
 java -jar start.jar
This will start up t he Jetty application server on port 8983, and use
your terminal to display the logging information from Solr.
Index your data
 java -jar post.jar *.xml
Interface
 http://localhost:8983/solr
Coffee at DBG- Solr introduction
The Solr Home directory typically contains the following sub-directories...
conf/
This directory is mandatory and must contain your solrconfig.xml
and schema.xml. Any other optional configuration files would also
be kept here.
data/
This directory is the default location where Solr will keep your
index, and is used by the replication scripts for dealing with
snapshots. You can override this location in the
conf/solrconfig.xml. Solr will create this directory if it does not
already exist.
lib/
This directory is optional. If it exists, Solr will load any Jars
found in this directory and use them to resolve any "plugins"
specified in your solrconfig.xml or schema.xml (ie: Analyzers,
Request Handlers, etc...). Alternatively you can use the <lib>
syntax in conf/solrconfig.xml to direct Solr to your plugins. See
the example conf/solrconfig.xml file for details.
 solr-php-client
 Pecl extention for solr
Field options
 Indexed
 Stored
 multiValued
 compressed
 add/update - allows you to add or update a document to Solr.
Additions and updates are not available for searching until a commit
takes place.
 commit - tells Solr that all changes made since the last commit
should be made available for searching.
 optimize - restructures Lucene's files to improve performance for
searching. Optimization is generally good to do when indexing has
completed. If there are frequent updates, you should schedule
optimization for low-usage times. An index does not need to be
optimized to work properly. Optimization can be a time-consuming
process.
 delete - can be specified by id or by query. Delete by id deletes
the document with the specified id; delete by query deletes all
documents returned by a query.
Supported formats XML, JSON, CSV, or javabin.
Supported document types are Microsoft office docs, PDF’s
 curl http://localhost:8983/solr/collection1/update/csv -H Content-
type:text/csv; charset=utf-8 --data-binary @D:/Projects/solr-
4.3.0/example/exampledocs/books.csv
 http://localhost:8983/solr/collection1/update?stream.body=%3Cco
mmit/%3E
q The query to search with in Solr. See "Lucene QueryParser Syntax"
in Resources for a full description of the syntax. Sorting
information can be included by appending a semi-colon and the
name of an indexed, non-tokenized field (explained below). The
default sort is score desc, which means sort by descending score.
q=myField:Java AND
otherField:developerWorks; date asc
This query searches the two fields
specified and sorts the results based
on a date field.
start Specifies the starting offset into the result set. Useful for paging
through results. The default value is 0.
start=15
Returns results starting with the
fifteenth ranked result.
rows The maximum number of documents to return. The default value
is 10.
rows=25
fq Provide an optional filtering query. Results of the query are
restricted to searching only those results returned by the filter
query. Filtered queries are cached by Solr. They are very useful
for improving the speed of complex queries.
Any valid query that could be passed
in the q parameter, not including
sort information.
hl When hl=true, highlight snippets in the query response. Default
is false. See the Solr Wiki section on highlighting parameters for
more options (in Resources).
hl=true
fl Specify as a comma-separated list the set of Fields that should
be returned in the document results. "*" is the default and means
all fields. "score" indicates the score should be returned as well.
*,score
Full text search
 http://localhost:8983/solr/select?q=Searchtext
Search only within a field
 http://localhost:8983/solr/select?q=fieldname:searchtext
Control which fields are displayed in result
 http://localhost:8983/solr/select?q=video&fl=id,category
Provide ranges to fields
 http://localhost:8983/solr/select?q=price:[0
TO400]&fl=id,name,price
More like this (MLT)
 http://localhost:8983/solr/select?q=Searchtext&mlt=true&mlt.fl=he
adline&mlt.mindf=1&mlt.mintf=1&fl=id,score&rows=100
More information on how this works and the options available
can be found at http://wiki.apache.org/solr/MoreLikeThis
Coffee at DBG- Solr introduction
http://localhost:8983/solr/query?q=camera&facet=true&facet.field
=manu
 Hit Highlight
 Auto suggest
 Spell suggestion
 Spatial search
Removing Data from Index
curl http://localhost:8983/solr/collection1/update -H
"Content-Type: text/xml“ --data-binary
“<delete><query>*:*</query></delete>”
Coffee at DBG- Solr introduction

More Related Content

What's hot

[Java] #7 - Input & Output Stream
[Java] #7 - Input & Output Stream[Java] #7 - Input & Output Stream
[Java] #7 - Input & Output StreamGhadeer AlHasan
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22zeesniper
 
UNIT 10. Files and file handling in C
UNIT 10. Files and file handling in CUNIT 10. Files and file handling in C
UNIT 10. Files and file handling in CAshim Lamichhane
 
08. handling file streams
08. handling file streams08. handling file streams
08. handling file streamsHaresh Jaiswal
 
Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)Abdullah khawar
 
working file handling in cpp overview
working file handling in cpp overviewworking file handling in cpp overview
working file handling in cpp overviewgourav kottawar
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guideAmit87_dba
 
Url Connection
Url ConnectionUrl Connection
Url Connectionphanleson
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handlingpinkpreet_kaur
 
Apache cheat sheet
Apache cheat sheetApache cheat sheet
Apache cheat sheetLam Hoang
 
file handling, dynamic memory allocation
file handling, dynamic memory allocationfile handling, dynamic memory allocation
file handling, dynamic memory allocationindra Kishor
 
File Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CFile Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CMahendra Yadav
 

What's hot (19)

[Java] #7 - Input & Output Stream
[Java] #7 - Input & Output Stream[Java] #7 - Input & Output Stream
[Java] #7 - Input & Output Stream
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22
 
UNIT 10. Files and file handling in C
UNIT 10. Files and file handling in CUNIT 10. Files and file handling in C
UNIT 10. Files and file handling in C
 
File Pointers
File PointersFile Pointers
File Pointers
 
Solr5
Solr5Solr5
Solr5
 
08. handling file streams
08. handling file streams08. handling file streams
08. handling file streams
 
Udemy talend notes
Udemy talend notesUdemy talend notes
Udemy talend notes
 
file
filefile
file
 
Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)
 
working file handling in cpp overview
working file handling in cpp overviewworking file handling in cpp overview
working file handling in cpp overview
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
 
Url Connection
Url ConnectionUrl Connection
Url Connection
 
Url Connection
Url ConnectionUrl Connection
Url Connection
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handling
 
Apache cheat sheet
Apache cheat sheetApache cheat sheet
Apache cheat sheet
 
URL Class in JAVA
URL Class in JAVAURL Class in JAVA
URL Class in JAVA
 
file handling, dynamic memory allocation
file handling, dynamic memory allocationfile handling, dynamic memory allocation
file handling, dynamic memory allocation
 
File Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CFile Handling and Command Line Arguments in C
File Handling and Command Line Arguments in C
 
File handling in c++
File handling in c++File handling in c++
File handling in c++
 

Viewers also liked

Simulation pitfalls p302023
Simulation pitfalls p302023Simulation pitfalls p302023
Simulation pitfalls p302023vijaykale1981
 
Facebook, 2014 yılında global ekonomi.
Facebook, 2014 yılında global ekonomi.Facebook, 2014 yılında global ekonomi.
Facebook, 2014 yılında global ekonomi.Ali Osman Uysal
 
Office page optimization
Office page optimizationOffice page optimization
Office page optimizationNarahs
 
Agile software development
Agile software developmentAgile software development
Agile software developmentVarun Mahajan
 
103671766 a-students-guide-to-refinery
103671766 a-students-guide-to-refinery103671766 a-students-guide-to-refinery
103671766 a-students-guide-to-refineryvijaykale1981
 
Liquid liquid extraction--_basic_principles
Liquid liquid extraction--_basic_principlesLiquid liquid extraction--_basic_principles
Liquid liquid extraction--_basic_principlesvijaykale1981
 
Best Practices in International Student Engagement: From Inquiry to Enrollmen...
Best Practices in International Student Engagement: From Inquiry to Enrollmen...Best Practices in International Student Engagement: From Inquiry to Enrollmen...
Best Practices in International Student Engagement: From Inquiry to Enrollmen...Hotcourses Abroad
 
How Students Research Study Abroad Opportunities - NAFSA 2013
How Students Research Study Abroad Opportunities - NAFSA 2013How Students Research Study Abroad Opportunities - NAFSA 2013
How Students Research Study Abroad Opportunities - NAFSA 2013Hotcourses Abroad
 
Cardio preesentation by ms. jennifer magpayo
Cardio preesentation by ms. jennifer magpayoCardio preesentation by ms. jennifer magpayo
Cardio preesentation by ms. jennifer magpayoJennifer Magpayo
 
Top 5 favorite wake and bake emerge marijuana strains
Top 5 favorite wake and bake emerge marijuana strainsTop 5 favorite wake and bake emerge marijuana strains
Top 5 favorite wake and bake emerge marijuana strainsEarl Carruthers
 
3rd semester-mba-assignment-&-seminar-topics-2013-web
3rd semester-mba-assignment-&-seminar-topics-2013-web3rd semester-mba-assignment-&-seminar-topics-2013-web
3rd semester-mba-assignment-&-seminar-topics-2013-webNarahs
 
145199757 distillation-handbook
145199757 distillation-handbook145199757 distillation-handbook
145199757 distillation-handbookvijaykale1981
 

Viewers also liked (13)

3 fema431 chap2
3 fema431 chap23 fema431 chap2
3 fema431 chap2
 
Simulation pitfalls p302023
Simulation pitfalls p302023Simulation pitfalls p302023
Simulation pitfalls p302023
 
Facebook, 2014 yılında global ekonomi.
Facebook, 2014 yılında global ekonomi.Facebook, 2014 yılında global ekonomi.
Facebook, 2014 yılında global ekonomi.
 
Office page optimization
Office page optimizationOffice page optimization
Office page optimization
 
Agile software development
Agile software developmentAgile software development
Agile software development
 
103671766 a-students-guide-to-refinery
103671766 a-students-guide-to-refinery103671766 a-students-guide-to-refinery
103671766 a-students-guide-to-refinery
 
Liquid liquid extraction--_basic_principles
Liquid liquid extraction--_basic_principlesLiquid liquid extraction--_basic_principles
Liquid liquid extraction--_basic_principles
 
Best Practices in International Student Engagement: From Inquiry to Enrollmen...
Best Practices in International Student Engagement: From Inquiry to Enrollmen...Best Practices in International Student Engagement: From Inquiry to Enrollmen...
Best Practices in International Student Engagement: From Inquiry to Enrollmen...
 
How Students Research Study Abroad Opportunities - NAFSA 2013
How Students Research Study Abroad Opportunities - NAFSA 2013How Students Research Study Abroad Opportunities - NAFSA 2013
How Students Research Study Abroad Opportunities - NAFSA 2013
 
Cardio preesentation by ms. jennifer magpayo
Cardio preesentation by ms. jennifer magpayoCardio preesentation by ms. jennifer magpayo
Cardio preesentation by ms. jennifer magpayo
 
Top 5 favorite wake and bake emerge marijuana strains
Top 5 favorite wake and bake emerge marijuana strainsTop 5 favorite wake and bake emerge marijuana strains
Top 5 favorite wake and bake emerge marijuana strains
 
3rd semester-mba-assignment-&-seminar-topics-2013-web
3rd semester-mba-assignment-&-seminar-topics-2013-web3rd semester-mba-assignment-&-seminar-topics-2013-web
3rd semester-mba-assignment-&-seminar-topics-2013-web
 
145199757 distillation-handbook
145199757 distillation-handbook145199757 distillation-handbook
145199757 distillation-handbook
 

Similar to Coffee at DBG- Solr introduction

Dev8d Apache Solr Tutorial
Dev8d Apache Solr TutorialDev8d Apache Solr Tutorial
Dev8d Apache Solr TutorialSourcesense
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr WorkshopJSGB
 
Solr Application Development Tutorial
Solr Application Development TutorialSolr Application Development Tutorial
Solr Application Development TutorialErik Hatcher
 
Apache Solr + ajax solr
Apache Solr + ajax solrApache Solr + ajax solr
Apache Solr + ajax solrNet7
 
Apache solr tech doc
Apache solr tech docApache solr tech doc
Apache solr tech docBarot Sagar
 
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, Lucidworks
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, LucidworksLifecycle of a Solr Search Request - Chris "Hoss" Hostetter, Lucidworks
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, LucidworksLucidworks
 
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )Assamese search engine using SOLR by Moinuddin Ahmed ( moin )
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )'Moinuddin Ahmed
 
Apache Solr-Webinar
Apache Solr-WebinarApache Solr-Webinar
Apache Solr-WebinarEdureka!
 
Search Engine Capabilities - Apache Solr(Lucene)
Search Engine Capabilities - Apache Solr(Lucene)Search Engine Capabilities - Apache Solr(Lucene)
Search Engine Capabilities - Apache Solr(Lucene)Manish kumar
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes WorkshopErik Hatcher
 
Apache Lucene: Searching the Web and Everything Else (Jazoon07)
Apache Lucene: Searching the Web and Everything Else (Jazoon07)Apache Lucene: Searching the Web and Everything Else (Jazoon07)
Apache Lucene: Searching the Web and Everything Else (Jazoon07)dnaber
 
Tutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component pluginTutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component pluginsearchbox-com
 
Accelerated data access
Accelerated data accessAccelerated data access
Accelerated data accessgordonyorke
 
Integration Group - Robot Framework
Integration Group - Robot Framework Integration Group - Robot Framework
Integration Group - Robot Framework OpenDaylight
 
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve content
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve contentOpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve content
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve contentAlkacon Software GmbH & Co. KG
 

Similar to Coffee at DBG- Solr introduction (20)

Dev8d Apache Solr Tutorial
Dev8d Apache Solr TutorialDev8d Apache Solr Tutorial
Dev8d Apache Solr Tutorial
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr Workshop
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr Workshop
 
Solr Application Development Tutorial
Solr Application Development TutorialSolr Application Development Tutorial
Solr Application Development Tutorial
 
Apache Solr + ajax solr
Apache Solr + ajax solrApache Solr + ajax solr
Apache Solr + ajax solr
 
Apache Solr
Apache SolrApache Solr
Apache Solr
 
Apache solr tech doc
Apache solr tech docApache solr tech doc
Apache solr tech doc
 
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, Lucidworks
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, LucidworksLifecycle of a Solr Search Request - Chris "Hoss" Hostetter, Lucidworks
Lifecycle of a Solr Search Request - Chris "Hoss" Hostetter, Lucidworks
 
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )Assamese search engine using SOLR by Moinuddin Ahmed ( moin )
Assamese search engine using SOLR by Moinuddin Ahmed ( moin )
 
Apache Solr-Webinar
Apache Solr-WebinarApache Solr-Webinar
Apache Solr-Webinar
 
Search Engine Capabilities - Apache Solr(Lucene)
Search Engine Capabilities - Apache Solr(Lucene)Search Engine Capabilities - Apache Solr(Lucene)
Search Engine Capabilities - Apache Solr(Lucene)
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes Workshop
 
Solr Presentation
Solr PresentationSolr Presentation
Solr Presentation
 
Solr a.b-ab
Solr a.b-abSolr a.b-ab
Solr a.b-ab
 
Apache Lucene Searching The Web
Apache Lucene Searching The WebApache Lucene Searching The Web
Apache Lucene Searching The Web
 
Apache Lucene: Searching the Web and Everything Else (Jazoon07)
Apache Lucene: Searching the Web and Everything Else (Jazoon07)Apache Lucene: Searching the Web and Everything Else (Jazoon07)
Apache Lucene: Searching the Web and Everything Else (Jazoon07)
 
Tutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component pluginTutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component plugin
 
Accelerated data access
Accelerated data accessAccelerated data access
Accelerated data access
 
Integration Group - Robot Framework
Integration Group - Robot Framework Integration Group - Robot Framework
Integration Group - Robot Framework
 
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve content
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve contentOpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve content
OpenCms Days 2012 - OpenCms 8.5: Using Apache Solr to retrieve content
 

Recently uploaded

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemAsko Soukka
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsSafe Software
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UbiTrack UK
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfAijun Zhang
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarPrecisely
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Commit University
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Brian Pichman
 

Recently uploaded (20)

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystem
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )
 

Coffee at DBG- Solr introduction

  • 1. Prepared by Nithin S, Sajin TM Digital Brand Group
  • 2.  Apache solr is a search server written in Java using the java search library “lucene”.  Open source  Get results using web service as JSON/XML  UTF-8 support
  • 3.  Ebay  Hp  Guardian  Cisco  At&t  Intoit  Ford  http://wiki.apache.org/solr/PublicServers
  • 4.  Text based library in Java  Fast , feature rich with active apache development community  Inverted Index mechanism - Index the content related to the terms/words
  • 5. Server  Solr 4.3.0  Java server containers ( Tomcat/Jetty Servers )  Java 1.6 and above Client  Any system which can post and get data through http
  • 7.  Schema – can consider as a db table  Core - schema container  Collection – multiple core handling  DIH - Data import handler  Request handler - StandardRequestHandler , DisMaxRequestHandler (multiple fields), IndexInfoRequestHandler  Response handler - xml , json , python,ruby
  • 8. Start Solr  java -jar start.jar This will start up t he Jetty application server on port 8983, and use your terminal to display the logging information from Solr. Index your data  java -jar post.jar *.xml Interface  http://localhost:8983/solr
  • 10. The Solr Home directory typically contains the following sub-directories... conf/ This directory is mandatory and must contain your solrconfig.xml and schema.xml. Any other optional configuration files would also be kept here. data/ This directory is the default location where Solr will keep your index, and is used by the replication scripts for dealing with snapshots. You can override this location in the conf/solrconfig.xml. Solr will create this directory if it does not already exist. lib/ This directory is optional. If it exists, Solr will load any Jars found in this directory and use them to resolve any "plugins" specified in your solrconfig.xml or schema.xml (ie: Analyzers, Request Handlers, etc...). Alternatively you can use the <lib> syntax in conf/solrconfig.xml to direct Solr to your plugins. See the example conf/solrconfig.xml file for details.
  • 11.  solr-php-client  Pecl extention for solr
  • 12. Field options  Indexed  Stored  multiValued  compressed
  • 13.  add/update - allows you to add or update a document to Solr. Additions and updates are not available for searching until a commit takes place.  commit - tells Solr that all changes made since the last commit should be made available for searching.  optimize - restructures Lucene's files to improve performance for searching. Optimization is generally good to do when indexing has completed. If there are frequent updates, you should schedule optimization for low-usage times. An index does not need to be optimized to work properly. Optimization can be a time-consuming process.  delete - can be specified by id or by query. Delete by id deletes the document with the specified id; delete by query deletes all documents returned by a query.
  • 14. Supported formats XML, JSON, CSV, or javabin. Supported document types are Microsoft office docs, PDF’s  curl http://localhost:8983/solr/collection1/update/csv -H Content- type:text/csv; charset=utf-8 --data-binary @D:/Projects/solr- 4.3.0/example/exampledocs/books.csv  http://localhost:8983/solr/collection1/update?stream.body=%3Cco mmit/%3E
  • 15. q The query to search with in Solr. See "Lucene QueryParser Syntax" in Resources for a full description of the syntax. Sorting information can be included by appending a semi-colon and the name of an indexed, non-tokenized field (explained below). The default sort is score desc, which means sort by descending score. q=myField:Java AND otherField:developerWorks; date asc This query searches the two fields specified and sorts the results based on a date field. start Specifies the starting offset into the result set. Useful for paging through results. The default value is 0. start=15 Returns results starting with the fifteenth ranked result. rows The maximum number of documents to return. The default value is 10. rows=25 fq Provide an optional filtering query. Results of the query are restricted to searching only those results returned by the filter query. Filtered queries are cached by Solr. They are very useful for improving the speed of complex queries. Any valid query that could be passed in the q parameter, not including sort information. hl When hl=true, highlight snippets in the query response. Default is false. See the Solr Wiki section on highlighting parameters for more options (in Resources). hl=true fl Specify as a comma-separated list the set of Fields that should be returned in the document results. "*" is the default and means all fields. "score" indicates the score should be returned as well. *,score
  • 16. Full text search  http://localhost:8983/solr/select?q=Searchtext Search only within a field  http://localhost:8983/solr/select?q=fieldname:searchtext Control which fields are displayed in result  http://localhost:8983/solr/select?q=video&fl=id,category Provide ranges to fields  http://localhost:8983/solr/select?q=price:[0 TO400]&fl=id,name,price More like this (MLT)  http://localhost:8983/solr/select?q=Searchtext&mlt=true&mlt.fl=he adline&mlt.mindf=1&mlt.mintf=1&fl=id,score&rows=100 More information on how this works and the options available can be found at http://wiki.apache.org/solr/MoreLikeThis
  • 19.  Hit Highlight  Auto suggest  Spell suggestion  Spatial search
  • 20. Removing Data from Index curl http://localhost:8983/solr/collection1/update -H "Content-Type: text/xml“ --data-binary “<delete><query>*:*</query></delete>”