Submit Search
Upload
Using Apache Solr
•
30 likes
•
5,243 views
pittaya
Follow
intro to full text search solution, Apache Solr
Read less
Read more
Technology
Report
Share
Report
Share
1 of 72
Download now
Download to read offline
Recommended
Apache Solr Workshop
Apache Solr Workshop
Saumitra Srivastav
Rebuilding Solr 6 examples - layer by layer (LuceneSolrRevolution 2016)
Rebuilding Solr 6 examples - layer by layer (LuceneSolrRevolution 2016)
Alexandre Rafalovitch
Solr Recipes Workshop
Solr Recipes Workshop
Erik Hatcher
Solr Troubleshooting - TreeMap approach
Solr Troubleshooting - TreeMap approach
Alexandre Rafalovitch
Apache Solr
Apache Solr
Minh Tran
Solr Application Development Tutorial
Solr Application Development Tutorial
Erik Hatcher
Solr 6 Feature Preview
Solr 6 Feature Preview
Yonik Seeley
Solr Presentation
Solr Presentation
Gaurav Verma
Recommended
Apache Solr Workshop
Apache Solr Workshop
Saumitra Srivastav
Rebuilding Solr 6 examples - layer by layer (LuceneSolrRevolution 2016)
Rebuilding Solr 6 examples - layer by layer (LuceneSolrRevolution 2016)
Alexandre Rafalovitch
Solr Recipes Workshop
Solr Recipes Workshop
Erik Hatcher
Solr Troubleshooting - TreeMap approach
Solr Troubleshooting - TreeMap approach
Alexandre Rafalovitch
Apache Solr
Apache Solr
Minh Tran
Solr Application Development Tutorial
Solr Application Development Tutorial
Erik Hatcher
Solr 6 Feature Preview
Solr 6 Feature Preview
Yonik Seeley
Solr Presentation
Solr Presentation
Gaurav Verma
Solr Black Belt Pre-conference
Solr Black Belt Pre-conference
Erik Hatcher
Rapid Prototyping with Solr
Rapid Prototyping with Solr
Erik Hatcher
Solr Masterclass Bangkok, June 2014
Solr Masterclass Bangkok, June 2014
Alexandre Rafalovitch
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Ecommerce Solution Provider SysIQ
Building your own search engine with Apache Solr
Building your own search engine with Apache Solr
Biogeeks
Introduction to Apache Solr.
Introduction to Apache Solr.
ashish0x90
20130310 solr tuorial
20130310 solr tuorial
Chris Huang
Beyond full-text searches with Lucene and Solr
Beyond full-text searches with Lucene and Solr
Bertrand Delacretaz
Tutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component plugin
searchbox-com
Introduction to Solr
Introduction to Solr
Erik Hatcher
Get the most out of Solr search with PHP
Get the most out of Solr search with PHP
Paul Borgermans
Integrating the Solr search engine
Integrating the Solr search engine
th0masr
Apache Solr crash course
Apache Solr crash course
Tommaso Teofili
Introduction to Solr
Introduction to Solr
Jayesh Bhoyar
Apache Solr
Apache Solr
Semih Hakkıoğlu
Lucene's Latest (for Libraries)
Lucene's Latest (for Libraries)
Erik Hatcher
Solr Query Parsing
Solr Query Parsing
Erik Hatcher
Rapid Prototyping with Solr
Rapid Prototyping with Solr
Erik Hatcher
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
Erik Hatcher
Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5
israelekpo
Building a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engine
Trey Grainger
Solr for Indexing and Searching Logs
Solr for Indexing and Searching Logs
Sematext Group, Inc.
More Related Content
What's hot
Solr Black Belt Pre-conference
Solr Black Belt Pre-conference
Erik Hatcher
Rapid Prototyping with Solr
Rapid Prototyping with Solr
Erik Hatcher
Solr Masterclass Bangkok, June 2014
Solr Masterclass Bangkok, June 2014
Alexandre Rafalovitch
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Ecommerce Solution Provider SysIQ
Building your own search engine with Apache Solr
Building your own search engine with Apache Solr
Biogeeks
Introduction to Apache Solr.
Introduction to Apache Solr.
ashish0x90
20130310 solr tuorial
20130310 solr tuorial
Chris Huang
Beyond full-text searches with Lucene and Solr
Beyond full-text searches with Lucene and Solr
Bertrand Delacretaz
Tutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component plugin
searchbox-com
Introduction to Solr
Introduction to Solr
Erik Hatcher
Get the most out of Solr search with PHP
Get the most out of Solr search with PHP
Paul Borgermans
Integrating the Solr search engine
Integrating the Solr search engine
th0masr
Apache Solr crash course
Apache Solr crash course
Tommaso Teofili
Introduction to Solr
Introduction to Solr
Jayesh Bhoyar
Apache Solr
Apache Solr
Semih Hakkıoğlu
Lucene's Latest (for Libraries)
Lucene's Latest (for Libraries)
Erik Hatcher
Solr Query Parsing
Solr Query Parsing
Erik Hatcher
Rapid Prototyping with Solr
Rapid Prototyping with Solr
Erik Hatcher
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
Erik Hatcher
Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5
israelekpo
What's hot
(20)
Solr Black Belt Pre-conference
Solr Black Belt Pre-conference
Rapid Prototyping with Solr
Rapid Prototyping with Solr
Solr Masterclass Bangkok, June 2014
Solr Masterclass Bangkok, June 2014
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Enterprise Search Solution: Apache SOLR. What's available and why it's so cool
Building your own search engine with Apache Solr
Building your own search engine with Apache Solr
Introduction to Apache Solr.
Introduction to Apache Solr.
20130310 solr tuorial
20130310 solr tuorial
Beyond full-text searches with Lucene and Solr
Beyond full-text searches with Lucene and Solr
Tutorial on developing a Solr search component plugin
Tutorial on developing a Solr search component plugin
Introduction to Solr
Introduction to Solr
Get the most out of Solr search with PHP
Get the most out of Solr search with PHP
Integrating the Solr search engine
Integrating the Solr search engine
Apache Solr crash course
Apache Solr crash course
Introduction to Solr
Introduction to Solr
Apache Solr
Apache Solr
Lucene's Latest (for Libraries)
Lucene's Latest (for Libraries)
Solr Query Parsing
Solr Query Parsing
Rapid Prototyping with Solr
Rapid Prototyping with Solr
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
code4lib 2011 preconference: What's New in Solr (since 1.4.1)
Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5
Viewers also liked
Building a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engine
Trey Grainger
Solr for Indexing and Searching Logs
Solr for Indexing and Searching Logs
Sematext Group, Inc.
Solr: Search at the Speed of Light
Solr: Search at the Speed of Light
Erik Hatcher
Solr vs. Elasticsearch - Case by Case
Solr vs. Elasticsearch - Case by Case
Alexandre Rafalovitch
Introduction to Apache Solr
Introduction to Apache Solr
Alexandre Rafalovitch
Scaling Solr with Solr Cloud
Scaling Solr with Solr Cloud
Sematext Group, Inc.
Big Data Analysis Patterns with Hadoop, Mahout and Solr
Big Data Analysis Patterns with Hadoop, Mahout and Solr
boorad
Battle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearch
Rafał Kuć
Introduction to Apache Lucene/Solr
Introduction to Apache Lucene/Solr
Rahul Jain
Cloudera Federal Forum 2014: Tracking Provenance in Hadoop Clusters
Cloudera Federal Forum 2014: Tracking Provenance in Hadoop Clusters
Cloudera, Inc.
CommunitySherpa Field Presentation
CommunitySherpa Field Presentation
Chris Vaughn
Spring 3.1 and MVC Testing Support - 4Developers
Spring 3.1 and MVC Testing Support - 4Developers
Sam Brannen
Chicago Hadoop Users Group: Enterprise Data Workflows
Chicago Hadoop Users Group: Enterprise Data Workflows
Paco Nathan
Reactive Programming With Akka - Lessons Learned
Reactive Programming With Akka - Lessons Learned
Daniel Sawano
The no-framework Scala Dependency Injection Framework
The no-framework Scala Dependency Injection Framework
Adam Warski
A Sceptical Guide to Functional Programming
A Sceptical Guide to Functional Programming
Garth Gilmour
Actor Based Asyncronous IO in Akka
Actor Based Asyncronous IO in Akka
drewhk
Effective akka scalaio
Effective akka scalaio
shinolajla
Big Data - How important it is
Big Data - How important it is
Adrian Pizarro Serrano
White Paper Presentation (2)
White Paper Presentation (2)
Faisal Halawani
Viewers also liked
(20)
Building a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engine
Solr for Indexing and Searching Logs
Solr for Indexing and Searching Logs
Solr: Search at the Speed of Light
Solr: Search at the Speed of Light
Solr vs. Elasticsearch - Case by Case
Solr vs. Elasticsearch - Case by Case
Introduction to Apache Solr
Introduction to Apache Solr
Scaling Solr with Solr Cloud
Scaling Solr with Solr Cloud
Big Data Analysis Patterns with Hadoop, Mahout and Solr
Big Data Analysis Patterns with Hadoop, Mahout and Solr
Battle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearch
Introduction to Apache Lucene/Solr
Introduction to Apache Lucene/Solr
Cloudera Federal Forum 2014: Tracking Provenance in Hadoop Clusters
Cloudera Federal Forum 2014: Tracking Provenance in Hadoop Clusters
CommunitySherpa Field Presentation
CommunitySherpa Field Presentation
Spring 3.1 and MVC Testing Support - 4Developers
Spring 3.1 and MVC Testing Support - 4Developers
Chicago Hadoop Users Group: Enterprise Data Workflows
Chicago Hadoop Users Group: Enterprise Data Workflows
Reactive Programming With Akka - Lessons Learned
Reactive Programming With Akka - Lessons Learned
The no-framework Scala Dependency Injection Framework
The no-framework Scala Dependency Injection Framework
A Sceptical Guide to Functional Programming
A Sceptical Guide to Functional Programming
Actor Based Asyncronous IO in Akka
Actor Based Asyncronous IO in Akka
Effective akka scalaio
Effective akka scalaio
Big Data - How important it is
Big Data - How important it is
White Paper Presentation (2)
White Paper Presentation (2)
Similar to Using Apache Solr
Os Pruett
Os Pruett
oscon2007
ApacheCon 2005
ApacheCon 2005
Adam Trachtenberg
Rapid prototyping search applications with solr
Rapid prototyping search applications with solr
Lucidworks (Archived)
QA for PHP projects
QA for PHP projects
Michelangelo van Dam
DataMapper
DataMapper
Yehuda Katz
Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)
Wongnai
Introduction to Active Record at MySQL Conference 2007
Introduction to Active Record at MySQL Conference 2007
Rabble .
Java Web Programming [5/9] : EL, JSTL and Custom Tags
Java Web Programming [5/9] : EL, JSTL and Custom Tags
IMC Institute
前端概述
前端概述
Ethan Zhang
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Yehuda Katz
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the code
Wim Godden
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
Alive Kuo
"Full Stack frameworks or a story about how to reconcile Front (good) and Bac...
"Full Stack frameworks or a story about how to reconcile Front (good) and Bac...
Fwdays
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Joao Lucas Santana
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Rails, Postgres, Angular, and Bootstrap: The Power Stack
David Copeland
Building Better Applications with Data::Manager
Building Better Applications with Data::Manager
Jay Shirley
Unit testing zend framework apps
Unit testing zend framework apps
Michelangelo van Dam
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
Michelangelo van Dam
2009 Barcamp Nashville Web Security 101
2009 Barcamp Nashville Web Security 101
brian_dailey
Unit testing with zend framework tek11
Unit testing with zend framework tek11
Michelangelo van Dam
Similar to Using Apache Solr
(20)
Os Pruett
Os Pruett
ApacheCon 2005
ApacheCon 2005
Rapid prototyping search applications with solr
Rapid prototyping search applications with solr
QA for PHP projects
QA for PHP projects
DataMapper
DataMapper
Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)
Introduction to Active Record at MySQL Conference 2007
Introduction to Active Record at MySQL Conference 2007
Java Web Programming [5/9] : EL, JSTL and Custom Tags
Java Web Programming [5/9] : EL, JSTL and Custom Tags
前端概述
前端概述
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the code
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
"Full Stack frameworks or a story about how to reconcile Front (good) and Bac...
"Full Stack frameworks or a story about how to reconcile Front (good) and Bac...
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Building Better Applications with Data::Manager
Building Better Applications with Data::Manager
Unit testing zend framework apps
Unit testing zend framework apps
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
2009 Barcamp Nashville Web Security 101
2009 Barcamp Nashville Web Security 101
Unit testing with zend framework tek11
Unit testing with zend framework tek11
More from pittaya
Firefox OS
Firefox OS
pittaya
Scaling Wordpress
Scaling Wordpress
pittaya
Cooking for guys
Cooking for guys
pittaya
Reading xkcd
Reading xkcd
pittaya
Fwdder : share your forward mails
Fwdder : share your forward mails
pittaya
Cross Processing
Cross Processing
pittaya
More from pittaya
(6)
Firefox OS
Firefox OS
Scaling Wordpress
Scaling Wordpress
Cooking for guys
Cooking for guys
Reading xkcd
Reading xkcd
Fwdder : share your forward mails
Fwdder : share your forward mails
Cross Processing
Cross Processing
Recently uploaded
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Roshan Dwivedi
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Recently uploaded
(20)
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Slack Application Development 101 Slides
Slack Application Development 101 Slides
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Using Apache Solr
1.
Full Text Search
with Apache Solr Pittaya Sroilong pittaya@gmail.com
2.
Who am I?
3.
4.
Solr?
5.
6.
Not her!
7.
But a search
server
8.
based on Lucene
9.
Lucene?
10.
Full-text search
library
11.
100% java
:-(
12.
Solr is based
on Lucene
13.
XML/HTTP, JSON
interface
14.
Open Source
15.
Shield us from
using Java :-)
16.
Who use Solr/Lucene?
17.
Who use Solr/Lucene?
18.
What is our
problem?
19.
How do we implement
this?
20.
SELECT * FROM
post WHERE topic LIKE ‘%aoi%’ OR author LIKE ‘%aoi%’ ORDER BY id DESC
21.
SELECT * FROM
post WHERE (topic LIKE ‘%aoi%’ OR author LIKE ‘%aoi%’) OR (topic LIKE ‘%miyabi%’ OR author LIKE ‘%miyabi%’) ORDER BY id DESC
22.
Full table scan
= Performance killer
23.
No search scoring
24.
RDBMS isn’t designed
to do this
25.
Use the right
tool!
26.
Indexer
Update index Query Solr Web App Lucene Result
27.
1
28.
De ne schema.xml
29.
<field name=quot;idquot; type=quot;stringquot; indexed=quot;truequot;
stored=quot;truequot; /> <field name=quot;fullnamequot; type=quot;stringquot; indexed=quot;truequot; stored=quot;truequot; /> <field name=quot;positionquot; type=quot;stringquot; indexed=quot;truequot; stored=quot;truequot; /> <field name=quot;tagquot; type=quot;stringiquot; indexed=quot;truequot; stored=quot;truequot; multiValued=quot;truequot; />
30.
2
31.
Deploy on any
J2EE container
32.
Tomcat, Jetty, etc.
33.
3
34.
Index documents
35.
Document format <add><doc> <field
name=”id”>555</field> <field name=”fullname”>Kaka</field> <field name=”position”>Midfielder</field> <field name=”tag”>AC Milan</field> <field name=”tag”>Brazil</field> </doc></add>
36.
Post to Solr http://<host>/solr/update
37.
Any language that
can do HTTP POST
38.
PHP, Perl, Python
39.
cURL
40.
Commit <commit />
41.
4
42.
Search
43.
Query from http://<host>/solr/select
44.
Use Solr query
syntax
45.
http://<host>/solr/select? q=tag:madrid&start=0&rows =2& =fullname,position,tag
46.
Response in XML
or JSON (con gurable)
47.
<response> <result numFound=”46”
start=”0”> <doc> <str name=”fullname”>Sergio Ramos</str> <str name=”position”>Defender</str> <str name=”tag”>Real Madrid</str> <str name=”tag”>Spain</str> </doc> <doc> <str name=”fullname”>Diego Forlan</str> <str name=”position”>Striker</str> <str name=”tag”>Atletico Madrid</str> <str name=”tag”>Uruguay</str> </doc> </result> </response>
48.
&wt=json
49.
{ “result”: {
“numFound”: 46, “start”: 0, “docs” : [ { “fullname”: “Sergio Ramos”, “position”: “Defender”, “tag”: [“Real Madrid”, “Spain”] }, { “fullname”: “Diego Forlan”, “position”: “Striker”, “tag”: [“Atletico Madrid”, “Uruguay”] } ] } }
50.
Query examples
51.
• David Pizzarro
• Equiv: David OR Pizzarro • Default operator is “OR” (con gurable) • Result: David Villa, David Pizzarro, Claudio Pizzarro, David Seaman
52.
• +David +tag:Roma
• Equiv: David AND tag:Roma • Result: David Pizzarro
53.
• +David +position:(Striker
OR Mid elder) • Result: David Villa, David Pizzarro
54.
Updating
55.
Post new document
to http://<host>/solr/update
56.
Deleting
57.
<delete> <id>345</id> </delete>
58.
<delete> <query>tag:Brazil</query> </delete>
59.
<delete> <query>*:*</query> </delete>
60.
Thai support
61.
fwdder.com
62.
Sharing forward mails
63.
64.
65.
Use customized eld
in schema.xml
66.
<fieldType name=quot;html_thquot; class=quot;solr.TextFieldquot; positionIncrementGap=quot;100quot;>
<analyzer type=quot;indexquot;> <tokenizer class=quot;solr.HTMLStripStandardTokenizerFactoryquot;/> <filter class=quot;solr.ThaiWordFilterFactoryquot; /> <filter class=quot;solr.StopFilterFactoryquot; ignoreCase=quot;truequot; words=quot;stopwords.txtquot;/> <filter class=quot;solr.LowerCaseFilterFactoryquot;/> <filter class=quot;solr.EnglishPorterFilterFactoryquot; protected=quot;protwords.txtquot;/> <filter class=quot;solr.RemoveDuplicatesTokenFilterFactoryquot;/> </analyzer> </fieldType>
67.
<field name=quot;idquot; type=quot;stringquot; indexed=quot;truequot;
stored=quot;truequot; /> <field name=quot;titlequot; type=quot;html_thquot; indexed=quot;truequot; stored=quot;truequot; /> <field name=quot;detailquot; type=quot;html_thquot; indexed=quot;truequot; stored=quot;truequot; /> <field name=quot;tagquot; type=quot;stringiquot; indexed=quot;truequot; stored=quot;truequot; multiValued=quot;truequot; /> <field name=quot;useridquot; type=quot;integerquot; indexed=quot;falsequot; stored=quot;truequot; />
68.
Index analyzer
69.
Debugging
70.
&debugQuery=on
71.
Further readings •
http://lucene.apache.org/solr/ • http://wiki.apache.org/solr • http://www.xml.com/pub/a/2006/08/09/ solr-indexing-xml-with-lucene- andrest.html • http://lucene.apache.org/java/docs/ scoring.html
72.
Q&A
Download now