1 / 9

An introduction to Solr

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

dillian
Download Presentation

An introduction to Solr

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. An introduction to Solr Implementing search with free software By Mick England

  2. 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

  3. 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

  4. 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

  5. Indexing • Push vs Crawl • Schema.xml • Add documents • HTML interface • Update • Delete • Commit • DataImportHandler • For searching databases By Mick England

  6. 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

  7. 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

  8. 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

  9. 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

More Related