Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Apache Solr for Indexing Data
  • Table Of Contents Toc
  • Feedback & Rating feedback
Apache Solr for Indexing Data

Apache Solr for Indexing Data

By : Handiekar, Johri
1 (1)
close
close
Apache Solr for Indexing Data

Apache Solr for Indexing Data

1 (1)
By: Handiekar, Johri

Overview of this book

Apache Solr is a widely used, open source enterprise search server that delivers powerful indexing and searching features. These features help fetch relevant information from various sources and documentation. Solr also combines with other open source tools such as Apache Tika and Apache Nutch to provide more powerful features. This fast-paced guide starts by helping you set up Solr and get acquainted with its basic building blocks, to give you a better understanding of Solr indexing. You’ll quickly move on to indexing text and boosting the indexing time. Next, you’ll focus on basic indexing techniques, various index handlers designed to modify documents, and indexing a structured data source through Data Import Handler. Moving on, you will learn techniques to perform real-time indexing and atomic updates, as well as more advanced indexing techniques such as de-duplication. Later on, we’ll help you set up a cluster of Solr servers that combine fault tolerance and high availability. You will also gain insights into working scenarios of different aspects of Solr and how to use Solr with e-commerce data. By the end of the book, you will be competent and confident working with indexing and will have a good knowledge base to efficiently program elements.
Table of Contents (13 chapters)
close
close
12
Index

Facet searching

In Solr, a facet provides us with a way to arrange the result into categories based on the index terms. For example, in our musicCatalogue, we can arrange the songs based on genre (for example, rock, pop, world music, and so on). This feature is very helpful in e-commerce websites, where we need to see data in a categorical way. Let's see how we can enable faceting in our search queries. There are no special settings needed to get faceting to work in our musicCatalogue example.

Let's open the query browser tab for our musicCatalgoue example from the Solr Admin UI. This time, in the query input fields, we'll enable the facet checkbox and input the genre field in the facet.field textbox, like this:

Facet searching

After clicking on Execute Query, we can see the following JSON output, which will contain a special JSON element. This element will contain facet_counts:

"facet_counts": {
    "facet_queries": {},
    "facet_fields": {
      "genre...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY