apache solr
DESCRIPTION
This is step-by-step instructions on how to install Apache Solr on your own server and integrating it with your Drupal installation.TRANSCRIPT
![Page 1: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/1.jpg)
Apache Solr
by helior coloradoThursday, July 2, 2009
![Page 2: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/2.jpg)
Drupal Search Process
Thursday, July 2, 2009
![Page 3: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/3.jpg)
Drupal Search Process
cron.php
Thursday, July 2, 2009
![Page 4: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/4.jpg)
Drupal Search Process
cron.php ∆ =node
search_index
Thursday, July 2, 2009
![Page 5: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/5.jpg)
Drupal Search Process
cron.php ∆ =node
search_index
Thursday, July 2, 2009
![Page 6: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/6.jpg)
Drupal Search Process
Thursday, July 2, 2009
![Page 7: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/7.jpg)
Drupal Search Process
content
Thursday, July 2, 2009
![Page 8: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/8.jpg)
Drupal Search Process
$resultscontent
acquia.com/blog/drupal-search-how-indexing-works
Thursday, July 2, 2009
![Page 9: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/9.jpg)
Drupal Search Process
$resultscontent
Thursday, July 2, 2009
![Page 10: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/10.jpg)
Drupal Search Process
indexeddatabase
Thursday, July 2, 2009
![Page 11: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/11.jpg)
Drupal Search Process
‣ Search box will only scan index
indexeddatabase
Thursday, July 2, 2009
![Page 12: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/12.jpg)
Drupal Search Process
‣ Search box will only scan index
‣ Must match search string exactly
indexeddatabase
Thursday, July 2, 2009
![Page 13: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/13.jpg)
Drupal Search Process
‣ Search box will only scan index
‣ Must match search string exactly
‣ limited support of operators
indexeddatabase
Thursday, July 2, 2009
![Page 14: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/14.jpg)
Drupal Search Process
‣ Search box will only scan index
‣ Must match search string exactly
‣ limited support of operators
‣ (-) exclude term
indexeddatabase
Thursday, July 2, 2009
![Page 15: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/15.jpg)
Drupal Search Process
‣ Search box will only scan index
‣ Must match search string exactly
‣ limited support of operators
‣ (-) exclude term
‣ (type:) content-type specificindexeddatabase
Thursday, July 2, 2009
![Page 16: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/16.jpg)
Installing Apache Solr Search Server for Drupal
What you will need:
Thursday, July 2, 2009
![Page 17: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/17.jpg)
Installing Apache Solr Search Server for Drupal
What you will need:
‣ Hosting that supports Java
Thursday, July 2, 2009
![Page 18: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/18.jpg)
Installing Apache Solr Search Server for Drupal
What you will need:
‣ Hosting that supports Java
‣ Access to Command Line
Thursday, July 2, 2009
![Page 19: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/19.jpg)
Install Java
# apt-get install sun-java6-jdk
Thursday, July 2, 2009
![Page 20: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/20.jpg)
Get Solr Search Server
# wget http://people.apache.org/builds/lucene/solr/nightly/your-nightly-build.zip
http://people.apache.org/builds/lucene/solr/nightly/Get your nightly build at
# unzip your-nightly-build.zip
Thursday, July 2, 2009
![Page 21: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/21.jpg)
Install Apache Solr Module
http://drupal.org/project/apachesolrInstall but don’t enable!
Thursday, July 2, 2009
![Page 22: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/22.jpg)
Get Solr PHP Client
# svn checkout -r6 http://solr-php-client.googlecode.com/svn/trunk/ SolrPhpClient
# mv SolrPhpClient drupal-root/sites/all/modules/apachesolr/
Thursday, July 2, 2009
![Page 23: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/23.jpg)
Enable Apache Solr Module
✓Solr Framework✓Solr Search Components
Thursday, July 2, 2009
![Page 24: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/24.jpg)
Get Solr PHP Client
# cd apache-solr/example# java -jar start.jar
Check to see if server is running..http://your-site:8983/solr/admin/form.jsp
Is it working with Drupal?
Thursday, July 2, 2009
![Page 25: Apache Solr](https://reader033.vdocuments.net/reader033/viewer/2022051411/5476ee1eb4af9fb7158b4585/html5/thumbnails/25.jpg)
Get Solr PHP Client
# cp drupal-root/sites/all/modules/schema.xml apache-solr/example/solr/conf/
# cp drupal-root/sites/all/modules/solrconfig.xml apache-solr/example/solr/conf/
Thursday, July 2, 2009