Home » Enterprise Java » Apache Solr

Apache Solr

Apache Solr Fuzzy Search Example

1. Introduction In this example we are going to build queries by using fuzzy search provided by Apache Solr. Fuzzy search is a powerful tool to find inexact matches in the Solr index. 2. Technologies Used The steps and commands described in this example are for Apache Solr 8.5 on Windows 10. The JDK version we use to run the ...

Read More »

Apache Solr Standard Query Parser Example

1. Introduction In this example, we are going to talk about one key component of Apache Solr: the Standard Query Parser. It is also known as “Lucene” query parser because Apache Solr is built upon Apache Lucene. Then we will show you how to use it in queries against our sample articles collection. Table Of Contents 1. Introduction 2. Technologies ...

Read More »

Apache Solr Function Query Example

1. Introduction In this example, we are going to explain what the Apache Solr Function Query is and how to use it in queries against our sample articles collection. 2. Technologies Used The steps and commands described in this example are for Apache Solr 8.5 on Windows 10. The JDK version we use to run the SolrCloud in this example ...

Read More »

Apache Solr Clustering Example

In this article, we will demonstrate an Apache Solr Clustering Example. We are going to show you how to set up and run a SolrCloud with two Solr servers and an embedded ZooKeeper instance on your local machine. Once it is up and running, we will show you how to use it to index our sample article collection and how ...

Read More »

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 ...

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 »