Monday, 28 April 2014

Intro to Dashboard Part - IV

In my last blog, 
I discussed about the Solr Thread Dump & Java Properties of Apache Solr Dashboard. Now we will discuss next tab.

Core Selection
This the part through which we interact with the solr core. Here just select the core "collection1" & you can see some more tabs on your screen like overview, analyze, config etc.

I will discuss these tabs in details in my coming post. Here I am giving a brief introduction to these tabs.

Lets you analyze the data found in specific fields.

Data Import Handler
It will show the details about the current status of configured data importer for an ex. if you want to connect to the external database such as MySql, Oracle etc. then you have to configure a data import handler & it's information will be displayed in this tab.

This tab provides you a GUI from where you can directly insert the data in different format to Apache Solr. This is a testing tab & provides you a facility to index your data directly from the browser.

This tab shows the current core configuration files such as solrconfig.xml and schema.xml.
you can not modify these files from this tab, this tab is only for read purpose.

Lets you ping a named core and determine whether the core is active or not. 

this tab shows statistics for plugins and other installed components.

This is a very important tab I will discuss it separately in new post. For introduction, this tab is used to query the indexed data in Apache Solr. It show all the formats supported by Apache Solr and all the parameters required or optional for searching text in Apache Solr. 

Shows you the current replication status for the core, and lets you enable/disable replication.

Schema Browser 
Displays schema data in a browser window.

Intro to Dashboard Part - III

In my last blog, 
I discussed about the Solr Core Admin of Apache Solr Dashboard. Now we will discuss next tab.

Java Properties
The Java Properties screen provides easy access to all the properties of the JVM running Solr, including the class paths, file encodings, operating system, and more.

Thread Dump
The Thread Dump screen lets you inspect the currently active threads on your server. Each thread is listed and access to the stacktraces is available where applicable. Icons to the left indicate the state of the thread: for example, threads with a green check-mark in a green circle are in a "RUNNABLE" state. On the right of the thread name, a down-arrow means you can expand to see the stacktrace for that thread. 

when you take mouse over any of the thread then it will show you the status of that thread i.e. It is in NEW, WAITING, TIMED_WAITING, RUNNABLE, BLOCKED , TERMINATED state.

Reference Url

Intro To Dashboard Part - II

In my last blog, 
I discussed about the logging tab of Apache Solr Dashboard. Now we will discuss next tab.

Solr Core 
With this console you can perform different operation on the different cores in Apache Solr. 

"A core is a collection of different configuration files, indexes and schema. It can be used by different applications for searching and indexing."

You can have multiple cores on single Solr instance & these core can have there own configurations, indexes and schema. These core can serve for different application & still have the convenience of unified administration.

Note: for creating a core first create a folder under Descktop/poc/solr4.7.2/example/solr/ and copy and paste conf folder from collection1 to new core directory into it then restart the server, you will see two core now.

Here you have two cores one is ankur and second is collection1.

Intro To Dashboard Part - I

Here I will give a brief introduction to Apache Solr Dashboard that we have seen in my last post i.e.

This tab display the current log information & exists untill the server not restarted, as the server restarted this information becomes reloaded. For logging Solr uses Slf4j library & file.
This file is present at /solr4.7.2/example/resource folder & can be customize according to your need.

While this example shows logged messages for only one core, if you have multiple cores in a single instance, they all will be listed with the level for each as shown below-

Here I used a term "Core", I'll discuss it separately. In logging tab you can select log level for your package or class. Just go over there in hierarchy & click you will get a list of all available logging level, select any one of them & logging for that particular package or class will starts automatically.

Getting Started with Apache Solr

Step-I :
download from its official site

Step-II :
extract it on your desired location. 
In my case its location is /Desktop/poc/

Apache Solr comes with running examples. i.e. In its working directory there is a folder named as example. Just go into that there you see a jar start.jar.

Step-III :
Use java -jar start.jar from your command line, it starts jetty server and this inbuild example becomes working. 
To check it is working or not just hit http://localhost:8983/solr/ and you can see its Dashboard screen
Congrats Your fist step is completed.

Dash Board

Sunday, 27 April 2014

Origin of Apache Solr

In late 2004, CNET Networks starts an in-house search platform project named as “Solar” (with an A).

In January 2006, CNET Networks decided to openly publish the source code by donating it to the Apache Software Foundation under the Lucene top-level project named as “Solr”.

On January 17, 2007 Solr graduated from the Apache Incubator to become a Lucene sub-project.

In March 2010, The Solr and Lucene-java sub-projects merged into a single project.

In 2011, Solr version number scheme was changed in order to match that of Lucene. After Solr 1.4.1, the next release of Solr was labeled 3.1, in order to keep Solr and Lucene on the same version number.

In October 2012 Solr version 4.0 was released, including the new Solr cloud feature.

Current Solr version relies is 4.7.2 & it is launched on 15 April 2014.

You can see all Solr version list here

Reference Url


Apache Solr is a popular open source enterprise search server, written in Java and runs within a servlet container such as Jetty, Tomcat etc. by default it comes with jetty server. It builds on another open source search technology: Apache Lucene search library for full text indexing and searching.

Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java.

Apache Solr is easy to use from virtually any programming language. It can be used to increase the performance as it can search all the web content.

You can put documents in it via xml, json, csv, binary formats & query it via GET request and receive search data in xml, json, csv, Python, Ruby, PHP, binary etc. formats.

Reference Url