Installing Apache Solr

About Apache Solr

Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world's largest internet sites.

Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr's powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.

http://lucene.apache.org/solr/

Install Solr on Mac OSX

kotaroito ~ 
$ brew install solr
==> Downloading http://www.apache.org/dyn/closer.cgi?path=lucene/solr/3.6.1/apache-solr-3.6.1.tgz
==> Best Mirror http://ftp.jaist.ac.jp/pub/apache/lucene/solr/3.6.1/apache-solr-3.6.1.tgz
######################################################################## 100.0%
==> Caveats
To start solr:
  solr path/to/solr/config/dir

See the solr homepage for more setup information:
  brew home solr
==> Summary
/usr/local/Cellar/solr/3.6.1: 2871 files, 139M, built in 43 seconds

Launch Solr

 cd /usr/local/Cellar/solr/3.6.1/libexec/example; java -jar start.jar &

Access to the Solr Admin page

http://localhost:8983/solr/admin/

f:id:kotaroito2002:20121001084046p:plain

It was quite easy to intall the Apache Solr on Max OSX.

Reference

Apache Solr入門 ―オープンソース全文検索エンジン

Apache Solr入門 ―オープンソース全文検索エンジン