Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 955 Bytes

SolrSearch.md

File metadata and controls

56 lines (38 loc) · 955 Bytes

Speaker: Xavier Briand -- @xavierbriand https://twitter.com/xavierbriand

Slides: http://xavierbriand.github.com/training-solr

Symfony2 search engine propelled by Solr

  • Built on top of Lucene
  • Companies include:
    • Etsy
    • AOL
    • etc
  • Relatively simple to install

Bridging Solr and Symfony

Indexing

  • "One index, one schema, n fields"
  • src: ./config/schema.xml
<fields>
	<field name="id" type="string" indexed="true" stored="true" required="true" />
	<!-- etc... -->
</fields>
  • Get solarium, form query, store.
  • Inject to Twig in "for" loop.

Relevancy

  • TF-IDF

  • Coord

  • lengthNorm

  • Boost

    • Title > text
	<field name="title" type="text_general" indexed="true" stored="true" />

Faceting

  • Means to organize results

Highlight

Spellchecker

Autocomplete

link: http://xavierbriand.github.com/training-solr/#/me