官术网_书友最值得收藏!

Overview and installation of Solr

Solr is the one of the most popular open source enterprise search platforms from the Apache Lucene open source project. Its features include full text search, faceted search, highlighting, near-real-time indexing, dynamic clustering, rich document handling, and geospatial search. Solr is highly reliable and scalable. This is the reason Solr powers the search features of the world's largest Internet sites, for example, Netflix, TicketMaster, SourceForge, and so on (source: https://wiki.apache.org/solr/PublicServers).

Solr is written in Java and runs as a standalone full text search server with a REST-like API. You feed documents into it (which is called indexing) via XML, JSON, CSV, and binary over HTTP. You query it through HTTP GET and receive XML, JSON, CSV, and binary results.

Let's go through the installation process of Solr. This section describes how to install Solr on various operating systems such as Mac, Windows, and Linux. Let's go through each of them one by one.

Installing Solr in OS X (Mac)

The easiest way to install Solr on OS X is by using homebrew. If you are not aware of homebrew and don't have homebrew installed on your Mac, then go to http://brew.sh/. Homebrew is the easiest way of installing packages/software on Mac.

You will require JRE 1.7 or above to install Solr on OS X. Just type java –version in the terminal and see what the version of JRE installed in your computer is. If it's less than 1.7, then you need to upgrade it to higher version and proceed with the following instructions.

Just type the following command in the terminal and it will automatically download all the files needed for Solr. Sit back and relax for a few minutes until it completes:

$ brew install Solr
主站蜘蛛池模板: 顺昌县| 丹东市| 高邮市| 尚义县| 晴隆县| 德令哈市| 建昌县| 陵水| 木兰县| 班戈县| 娄底市| 林口县| 衡山县| 迁西县| 会同县| 枞阳县| 康马县| 永丰县| 阿拉善右旗| 张家港市| 开阳县| 宁河县| 齐河县| 和硕县| 东乌珠穆沁旗| 东方市| 基隆市| 临潭县| 仙桃市| 搜索| 招远市| 社旗县| 淅川县| 桑植县| 白河县| 南皮县| 瓮安县| 安龙县| 肇庆市| 大冶市| 衡阳县|