Home » Enterprise Java » Apache Solr

Apache Solr

Apache Solr Hello World Example

1. Introduction Apache Solr is a powerful tool for real-time enterprise search. It is a REST-API based open source tool. It’s main functionalities are indexing and searching. It’s core search functionality is built using Apache Lucene Framework and has some excellent optimization features. It is written in Java Language. Features of Apache Solr Open source tool Advanced full text search ...

Read More »

Solr Zookeeper Example

In this example of Solr Zookeeper, we will discuss about how to use the Zookeeper embedded with Solr for performing the distributed search. Solr provides the Sharding option to distribute the Index across multiple servers. Zookeeper helps us in performing the distributed search and retrieve the resultset as if the query was performed on a single server. In this example, ...

Read More »

How to Install Solr on Ubuntu

In this example of “how to install Solr on Ubuntu” we will discuss about how to download and install Solr in Ubuntu operating system. Ubuntu desktop operating system powers millions of PCs and laptops around the world. So this example is dedicated to users who are on Ubuntu and want to install Solr on Ubuntu. Along with Solr installation, we ...

Read More »

Solr Dismax Example

In this example of Solr Dismax, we will discuss about how to use Dismax query to provide better search experience to the user. We will show you how to use boost factor and boost query parameters provided by Solr to obtain the desired results. To demonstrate the Solr Dismax usage, we will install Solr and start the solr with one of the pre-configured ...

Read More »

Solr Join Example

In this example of Solr Join Example, we will discuss about how to implement join between documents in Apache Solr. We will show you how to implement the Join Query Parser plugin specified by {!join}. The join is used in Solr documents where de-normalizing the data is time consuming or costly. To demonstrate the Solr Join usage, we will create a core in Solr using ...

Read More »

Solr Spellcheck Example

In this example of Solr Spellcheck, we will discuss about how to implement the spellcheck functionality provided by Apache Solr. We will show you how to configure the spellcheck in Solr and discuss the query parameters used to get the spellcheck suggestions. To demonstrate the Solr Spellcheck example, we will create a core in Solr using basic configuration and index a sample file shipped along ...

Read More »

Solr Multivalued Example

In this example of Solr Multivalued Example, we will discuss about how to index a field that contains multiple values and also demonstrate how to retrieve them. There is no difference in the way how Solr stores the index values for a single value field and multiple value field. But, while retrieving the multi value fields from the storage we will get ...

Read More »

Solr Delete Query Example

In this example of Solr Delete Query Example, we will discuss about various options available in Solr to delete the indexed documents. We will also discuss different client options available in Solr. To demonstrate the delete query usage, we will create a core in Solr using basic configuration and index a sample file shipped along with Solr installation. Our preferred environment for this example is solr-5.0.0. Before you begin ...

Read More »

Solr Dataimporthandler Example

In this example of Dataimporthandler, we will discuss about how to import and index data from a database using Dataimporthandler. Also we will discuss about various configuration needed to import the data from a relational database. Many search applications store the content to be indexed in a structured data store, such as a relational database. Apart from database, the DIH can be used ...

Read More »

Solr Schema.xml Example

In this example of Solr Schema.xml Example, we will discuss about different configuration parameters in schema.xml file provided by Apache Solr. The schema.xml describes the documents we want the Solr to index. We get to define both the field types and the fields themselves. Field type definitions are powerful and include information about how Solr processes incoming field values and query values. We will ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns