How to set up and use Apache Solr in php

Posted on Tuesday, May 6, 2014
How to set up and use Apache Solr in php

 

Apache Solr is an open source search platform that allows to run search queries faster. It's quite popular because of its performance and ability to easily integrate with systems such as Drupal. It stores data in a way that is very fast for queries required by faceted search. It also provides full text searches.

Here we will be learning to install and configure apache solr in ubuntu 12.04. Download apache solr from http://lucene.apache.org/solr/downloads.html For our case we will be using Apache Solr 4.4.0 Other things we need

  • SolrClient
  • Jetty or Tomcat to run jar file which will indexes data and sends queries to XML files created by solr and return data. We will by using jetty in our case.

We will be using PECL solr extension for SolrPhpClient, for indexing solr data through its class & methods. In case you have not install PECL, you can do that by typing below command in your terminal sudo apt-get install php-pear You can install solr PECL extension by using the following command in your terminal. sudo pear install pecl/solr sudo pecl install -n solr sudo service apache2 restart For jetty, it can installed by using following command in your terminal sudo apt-get install jetty Once you have downloaded apache solr you need to put that in your www directory in case of LAMP and htdocs in you are using XAMPP for linux. After downloading solr, run start.jar by navigating to location SOLR-DIRECTORY/example/. Command to run jar file is same as its for any jar file i.e. java -jar start.jar. Once you have run start.jar, you can check if apache solr is running or not by access the url http://localhost:8983/solr/. By default solr uses 8983 port, so 8983 indicates port in the url. Now go to the solr directory that you have. Structure for it will like below

Apache solr structure

It is example directory which we will use mostly for our work purpose. In example directory there is solr directory, which holds our various collections and indexed data related to that collection.

Comments

Mei (not verified)

Thursday, August 17, 2017

Hello there I am so glad I found your webpage, I really found you by error, while I was researching on Aol for something
else, Anyways I am here now and would just like to say thank you for a marvelous post and
a all round enjoyable blog (I also love the theme/design), I don’t have time to go through it all
at the minute but I have saved it and also added
in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the awesome b.

my webpage - pożyczki bez bik przez internet

fatihin nurul (not verified)

Tuesday, August 22, 2017

usaha Cristian Stroe setidaknya pemilik ranta undangan pernikahan klub bola
Agen Welded Beam T beam King Queen Cross Castellated Beam
undangan pernikahan cetak
Pabrik besi cnp baja
Agen Plat Besi Hitam
undangan pernikahan
Agen Jual Besi Siku Baja
Agen Bondek Cor
Agen Atap Spandek Sni
Toko besi beton psi Ulir Polos
Distributor besi cnp baja
Distributor besi cnp baja
undangan pernikahan klasik
Distributor besi h beam baja
Agen Plat Kapal Bki Krakatau Steel
undangan pernikahan amplop surat
Agen Besi Unp Baja Profil Kanal
Distributor Stainless steel
Agen Plat Bordes Kembang
Toko besi beton perwira
Harga besi cnp baja
Harga besi cnp baja
undangan pernikahan cantik elegan
Harga besi h beam baja
jasa konstruksi baja
undangan pernikahan simple
Agen Besi Cnp Profil Baja Gording
Supplier Stainless steel
Distributor besi cnp baja
Toko besi beton PAS
Jual besi cnp baja
Jual besi cnp baja
undangan pernikahan custom
Jual besi h beam baja
www.pusatbesibaja.co.id
undangan pernikahan murah
Agen Besi Hollow
Agen Stainless steel
Harga besi cnp baja
Toko besi beton master steel ms
Supplier besi cnp baja
Supplier besi cnp baja
undangan pernikahan cute
Supplier besi h beam baja
www.pusatbesibaja.com
undangan pernikahan unik
Agen Wiremesh
Toko Stainless steel
Jual besi cnp baja
Toko besi beton ksty
Toko besi cnp baja
Toko besi cnp baja
undangan pernikahan coklat
Toko besi h beam baja
www.jualbesibajamurah.com
undangan pernikahan biasa
Agen Besi Pipa Baja Schedule 80
Jual Stainless steel
Supplier besi cnp baja
Toko besi beton krakatau steel
Agen besi cnp baja
Agen besi cnp baja
undangan pernikahan cantik dan murah
Agen besi h beam baja
Agen besi beton Sni Ulir Polos polos ulir
undangan pernikahan bunga
Agen Besi Pipa Baja Schedule 40
Harga Stainless steel
Toko besi cnp baja
Toko besi beton jcac
Pabrik besi cnp baja
Pabrik besi cnp baja
undangan pernikahan casual
Pabrik besi h beam baja
Agen besi beton sii
undangan pernikahan artis
Agen Pipa Besi Hitam Medium
Pabrik Stainless steel
Agen besi cnp baja
Toko besi beton interworld steel is
Distributor besi h beam baja
Distributor besi h beam baja
undangan pernikahan contoh
Distributor plat besi hitam
Agen besi beton psi Ulir Polos
undangan pernikahan modern
Agen Besi Wf
Distributor Baja Ringan
Distributor Wiremesh Besi
Toko besi beton gunung garuda
Harga besi h beam baja
Harga besi h beam baja
undangan pernikahan chinese
Harga plat besi hitam
Agen besi beton perwira
undangan pernikahan artis
Agen Besi H beam
Supplier Baja Ringan
Harga Wiremesh Besi
Toko besi beton delcoprima
Jual besi h beam baja
Jual besi h beam baja
undangan pernikahan cantik
Jual plat besi hitam
Agen besi beton PAS
undangan pernikahan casual
Agen Besi Beton
Agen Baja Ringan
Jual Wiremesh Besi
Toko besi beton cakra steel cs
Supplier besi h beam baja
Supplier besi h beam baja
undangan pernikahan bunga
Supplier plat besi hitam
Agen besi beton master steel ms
undangan pernikahan animasi
www.sentrabesibaja.com
Toko Baja Ringan
Supplier Wiremesh Besi
Toko besi beton bjku
Toko besi h beam baja
Toko besi h beam baja
undangan pernikahan bentuk dompet
Toko plat besi hitam
Agen besi beton ksty
undangan pernikahan murah
Toko Welded Beam T beam King Queen Cross Castellated Beam
Jual Baja Ringan
Toko Wiremesh Besi
Toko besi beton Sni Ulir Polos
Agen besi h beam baja
Agen besi h beam baja
undangan pernikahan buatan sendiri
Agen plat besi hitam
Agen besi beton krakatau steel
undangan pernikahan biru
Toko Bondek Cor
Harga Baja Ringan
Agen Wiremesh Besi
Toko besi beton ais
Pabrik besi h beam baja
Pabrik besi h beam baja
undangan pernikahan batik
Pabrik plat besi hitam
Agen besi beton jcac
undangan pernikahan arab
Toko Atap Spandek Sni
Pabrik Baja Ringan
Pabrik Wiremesh Besi
Toko besi beton
Jual Jaket Parka Jual Jaket Parka
Jaket Parka Jaket Parka
undangan pernikahan kalender
undangan pernikahan bahasa inggris islam
undangan pernikahan islami
undangan pernikahan unik dan murah
undangan pernikahan modern
undangan pernikahan online
undangan pernikahan
undangan pernikahan amplop surat
undangan pernikahan simple
undangan pernikahan murah
undangan pernikahan unik
undangan pernikahan artis
undangan pernikahan modern
undangan pernikahan artis
undangan pernikahan arab
undangan pernikahan
undangan pernikahan

LINK 10

fatihin nurul (not verified)

Tuesday, August 22, 2017

yang berani untuk membawanya keluar. Beberapa Jual besi hollow
Jual besi hollow
Toko besi siku
Jual pipa besi
Toko pipa besi baja sch 40 sch 80
undangan pernikahan bentuk tas
Supplier Besi H beam
Agen Wiremesh Besi baja
Jual plat kapal besi baja
Pabrik besi beton master steel ms
Supplier besi hollow
Supplier besi hollow
Toko pipa besi baja sch 40 sch 80
Supplier pipa besi
Toko besi hollow
undangan pernikahan ada fotonya
Supplier Besi Beton
Toko Wiremesh Besi baja
Supplier plat kapal besi baja
Pabrik besi beton ksty
Toko besi hollow
Toko besi hollow
Toko Plat besi
Toko pipa besi
Toko besi beton Sni Ulir Polos
undangan pernikahan aneh
www.sentrabesibaja.com
Jual Wiremesh Besi baja
Toko plat kapal besi baja
Pabrik besi beton krakatau steel
Agen besi hollow
Agen besi hollow
Toko besi h beam
Agen pipa besi
Toko besi wf baja
undangan pernikahan amplop
Pabrik Welded Beam T beam King Queen Cross Castellated Beam
Harga Wiremesh Besi baja
Agen plat kapal besi baja
Pabrik besi beton jcac
Pabrik besi hollow
Pabrik besi hollow
Toko besi wf
Pabrik pipa besi
Toko besi unp
undangan pernikahan batik
Pabrik Bondek Cor
Pabrik Wiremesh Besi baja
Pabrik plat kapal besi baja
Pabrik besi beton interworld steel is
Distributor pipa besi
Distributor pipa besi
Toko wiremesh
Distributor sch 40
Toko besi siku
undangan pernikahan murah
Pabrik Atap Spandek Sni
Distributor Besi Siku Baja
Distributor besi siku baja
Pabrik besi beton gunung garuda
Harga pipa besi
Harga pipa besi
Toko besi unp
Harga sch 40
Toko Plat besi plat kapal
undangan pernikahan online
Pabrik Plat Bordes Kembang
Supplier Besi Siku Baja
Harga besi siku baja
Pabrik besi beton delcoprima
Jual pipa besi
Jual pipa besi
Toko besi cnp
Jual sch 40
Toko besi h beam baja
undangan pernikahan anti mainstream
Pabrik Plat Besi Hitam
Agen Besi Siku Baja
Jual besi siku baja
Pabrik besi beton cakra steel cs
Supplier pipa besi
Supplier pipa besi
Toko besi hollow
Supplier sch 40
Toko besi cnp
undangan pernikahan cantik dan murah
Pabrik Plat Kapal Bki Krakatau Steel
Toko Besi Siku Baja
Supplier besi siku baja
Pabrik besi beton bjku
Toko pipa besi
Toko pipa besi
Toko besi beton Sni Ulir Polos
Toko sch 40
www.gudangbesibaja.com
undangan pernikahan unik
Pabrik Jual Besi Siku Baja
Jual Besi Siku Baja
Toko besi siku baja
Pabrik besi beton Sni Ulir Polos
Agen pipa besi
Agen pipa besi
ironsteelcenter.com
Agen sch 40
Supplier besi Wf Baja
undangan pernikahan yang unik
Pabrik Besi Unp Baja Profil Kanal
Harga Besi Siku Baja
Agen besi siku baja
Pabrik besi beton ais
Pabrik pipa besi
Pabrik pipa besi
Supplier stainless steel
Pabrik sch 40
Supplier bondek
undangan pernikahan lucu
Pabrik Besi Cnp Profil Baja Gording
Pabrik Besi Siku Baja
Pabrik besi siku baja
Pabrik besi beton
Distributor sch 40
Distributor sch 40
Supplier atap spandek
Distributor besi Pipa sch 80 baja
Supplier wiremesh
undangan pernikahan bunga
Pabrik Besi Hollow
Distributor Besi Unp Baja
Distributor besi wf
jasa konstruksi baja
Harga sch 40
Harga sch 40
Supplier baja ringan
Harga besi Pipa sch 80 baja
Supplier pipa besi baja sch 40 sch 80
undangan pernikahan islami
Pabrik Wiremesh
Supplier Besi Unp Baja
Harga besi wf
www.pusatbesibaja.co.id
Jual sch 40
Jual sch 40
Supplier bondek
Jual besi Pipa sch 80 baja
Supplier besi hollow
undangan pernikahan ada foto
Pabrik Besi Pipa Baja Schedule 80
Agen Besi Unp Baja
Jual besi wf
www.pusatbesibaja.com
Jual Jaket Parka Jual Jaket Parka
Jaket Parka Jaket Parka
Jual Jaket Parka Jual Jaket Parka
Jaket Parka Jaket Parka
undangan pernikahan kalender
undangan pernikahan bahasa inggris islam
undangan pernikahan islami
undangan pernikahan unik dan murah
undangan pernikahan modern
undangan pernikahan online
undangan pernikahan
undangan pernikahan amplop surat
undangan pernikahan simple
undangan pernikahan murah
undangan pernikahan unik
undangan pernikahan artis
undangan pernikahan modern
undangan pernikahan artis
undangan pernikahan arab
undangan pernikahan
undangan pernikahan

LINK 7

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.