As I said in my blog, it is just a place to remind me the technology that I used everyday, there will be nothing so profound but useful in daily work.
This blog will present a simple schema for the configuration of the php.ini. There are several php.ini after installed php, it is very easy to be confused.
Apache Solr 4.3.1 released Juin 18 2013
Here is the link to download : http://www.apache.org/dyn/closer.cgi/lucene/solr/4.3.1
Solr is the popular, blazing fast, open source NoSQL 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
fault tolerant distributed search and indexing, and powers the search
and navigation features of many of the world's largest internet sites.
To install the configuration of perl and php for apache in Ubuntu, it is sufficient to execute several commands.
For perl :
sudo apt-get install apache2
For php : sudo apt-get install php5 libapache2-mod-php5
After doing these commands, if we check whether the modules are avaliable, we just need a short script :
if [ -f "$mods_enabled/$mode" ] ; then
echo "The module $mode is enabled"
if [ -f "$mods_avalable/$mode" ] ; then
echo "The module $mode is available"
sudo ln -s $mods_available/$mode $mods_enabled/$mode
echo "[KO]The module is not installed[KO]"
There is a method to delete all the index in solr by using url :
And if you want just delete a field which id is 1, you can do this :
When deploying apache solr 1.4.1, if you see the following error, it will be normal, just launch a command in your termal, it will desapear.
That’s because we don’t have permission to write the folder in tomcat.
# chmod 777 data
### Apache Solr NGram/EdgeNGram ###
=== NGram ===
NGram is very useful for auto-complete, it will cut the word by a size specified by yourself.
For example, the word “paris”, minGramSize takes 2, maxGramSize takes 3, we will get :
paris => “pa”, “ar”, “ri”, “is”
=> “par”, “ari”, “ris”
By default, minGramSize is 1, maxGramSize is 1 and side is “front”.
You can also set side to “back” to generate the ngrams from right to left.
<fieldType name="text_general_ngram" positionIncrementGap="100">
<filter minGramSize="2" maxGramSize="15"/>
When deploying the solr 3.5 in ubuntu 10.04, I encounter several problems, for keeping clean, I put the solution before the problem.
Solr is an 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 handling, and geospatial search.
— Wiki Apache Solr
The feature that I prefer is the full-text search. So let’s begin.