Home » Enterprise Java » Apache Solr » Page 3

Apache Solr

Solr Join Example

In this example of Solr Join, 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 ...

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 »

Solr Filter Query Example

In this example of Solr filter query, we will discuss about how to implement filter queries functionality provided by Apache Solr. We will discuss how to use single and multiple filter queries to achieve the desired results. Also we will show the various filter query syntax offered by Solr and discuss the advantages of using one over other. To demonstrate the ...

Read More »

Solr Faceted Search Example

In this example of Solr faceted search, we will discuss about the use of faceting the data and also discuss different facet options available in Solr. For our discussion, we will be using one of the collection example (techproducts) that comes with the Solr Installation for easy set up. We will show you how to make use of the Solr facet ...

Read More »

Apache Solr Synonyms Example

In this example of Solr Synonyms we will show you how to use the Solr synonym feature to substitute words with the relevant words of the data we index. This feature helps in providing better user experience by identifying different usage for a word in the given data context. Solr ships with a filter factory called SynonymFilterFactory to achieve this functionality. Also, it provides a configuration ...

Read More »

Apache Solr replication example

In this example of Solr replication example, we will show you how to set up replication in Apache Solr and demonstrate how a new record gets replicated from master to slave cores. For this example we will consider one master and two slave servers. In production environment we will use different machines for hosting the master and slave servers. Over ...

Read More »