typo3 - use advanced search using solr (typo3camp pl)
DESCRIPTION
Talk was about using SOLR in TYPO3 projects.TRANSCRIPT
TYPO3 & Apache SOLRTomasz Grzemski
Who I am?
Tomasz Grzemski
Web Applications enthusiast
Proud father
Macopedia co-founder
Open-source Educator
Macopedia
Web Applications specialists
Open-Source and Scrum Lovers
3 Offices in Poland (Poznan, Warsaw, Cracow)
17 employees
Do it with PHP?
Search using PHP&MySQL - SLOW!Spelling correction with PHP&MySQL - SLOWER!
Auto-suggestion on big index with PHP&MySQL - Can it kill a web application?
Introduction to Apache SOLR
It is a search platform!
It is based on Lucene. It’s a Java application run on for example Tomcat/Jett
It is based on documents (no relations)!
Configuration based on schema!
PHP & Java
PHP & Java
Communication based on REST-like API
Results in XML & JSON
Use Solr-php-client library (http://code.google.com/p/solr-php-client/)
Create indexer for website
Implement operations: Querying, adding/updating/deleteing documents
PHP side
PHP & Java
Install SOLR
Configure SOLR on Jetty/Tomcat
Create cores for each index (multi language == multi core)
Create schema for each core
Java side
Do it in way?
EXT:solr
How it works?
TypoScript!
How to start?
git://git.typo3.org/TYPO3v4/Extensions/solr.git
Bash install tool for SOLRresources / shell / install-solr.sh
Automatic installation of SOLR on Tomcat
Create Cores for specified language
Runs the server
http://serwer:8080/solr/core_en/admin/
EXT:solr
Configure extensionext:solr
What about the index?
Image Sources:Library: http://www.edudemic.com/librarian-blogs/
Cat&Dog: http://trupanion.com/blog/2013/06/the-cat-dog-condundrum-sharing-a-harmonious-home/ (Photo by Peretz Partensky via Flickr)
Developer: http://finickypenguin.wordpress.com/2008/07/13/my-head-exploded/
Baby: http://www.comicsandmemes.com/best-of-success-baby-meme/