an introduction to solr
Download
Skip this Video
Download Presentation
An introduction to Solr

Loading in 2 Seconds...

play fullscreen
1 / 9

An introduction to Solr - PowerPoint PPT Presentation


  • 566 Views
  • Uploaded on

An introduction to Solr. Implementing search with free software. By Mick England. What is Solr?. Solr is an open source enterprise search server based on the Lucene Java search library. Solr runs in a Java servlet container such as Tomcat or Jetty

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' An introduction to Solr' - dillian


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
an introduction to solr

An introduction to Solr

Implementing search with free software

By Mick England

what is solr
What is Solr?
  • Solr is an open source enterprise search server based on the Lucene Java search library.
  • Solr runs in a Java servlet container such as Tomcat or Jetty
  • Solr is free software and a project of the Apache Software Foundation
  • Solr is a sub-project of Lucene and can be found at http://lucene.apache.org/solr/

By Mick England

key features
Key Features
  • Advanced Full-Text search
  • Optimized for High Volume Web Traffic
  • Standards Based Open Interfaces – XML and HTTP
  • Comprehensive HTML Administration Interface
  • Server statistics exposed over JMX for monitoring
  • Scalability through efficient replication
  • Flexibility with XML configuration and Plugins
  • Push vs Crawl indexing method

By Mick England

solr clients
Solr Clients
  • Solr can be integrated with, among others…
    • Ruby
    • PHP
    • Java
    • Python
    • JSON
    • Forrest/Cocoon
    • C# or Deveel Solr Client or solrnet
    • Coldfusion
    • Drupal or apacheSolr project for Drupal

By Mick England

indexing
Indexing
  • Push vs Crawl
  • Schema.xml
  • Add documents
  • HTML interface
    • Update
    • Delete
    • Commit
  • DataImportHandler
    • For searching databases

By Mick England

searching
Searching
  • Full text search

http://localhost:8983/solr/select?q=Iraq

  • Search only within a field

http://localhost:8983/solr/select?q=category:news

  • 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

By Mick England

more searching
More Searching
  • Faceting information

http://localhost:8983/solr/select?q=news&fl=id,description&facet=true&facet.field=category

  • More like this (MLT)

http://localhost:8983/solr/select?q=Iraq&mlt=true&mlt.fl=headline&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

By Mick England

queryresponsewriter
QueryResponseWriter
  • A QueryResponseWriter is a SolrPlugin that defines the response format for any request
  • All of the requests we have made so far are formatted with the XMLResponseWriter
  • Other formats can be applied by appending wt=format to the search string like this:

http://localhost:8983/solr/select?q=date:[1998%20TO%201999]&fl=id,name,date,headline&rows=200&wt=xslt&tr=example.xsl

By Mick England

acknowledgements
Acknowledgements
  • Search smarter with Apache Solr, Part 1: Essential features and the Solrschema
    • http://www.ibm.com/developerworks/java/library/j-solr1/
  • SolrTutorial from Lucid Imagination
    • http://www.lucidimagination.com/Community/Hear-from-the-Experts/Podcasts-and-Videos/Solr-Tutorial
  • Solr Wiki
    • http://wiki.apache.org/solr/

By Mick England

ad