Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Scaling Apache Solr

You're reading from   Scaling Apache Solr Optimize your searches using high-performance enterprise search repositories with Apache Solr

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783981748
Length 298 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Hrishikesh Vijay Karambelkar Hrishikesh Vijay Karambelkar
Author Profile Icon Hrishikesh Vijay Karambelkar
Hrishikesh Vijay Karambelkar
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Understanding Apache Solr FREE CHAPTER 2. Getting Started with Apache Solr 3. Analyzing Data with Apache Solr 4. Designing Enterprise Search 5. Integrating Apache Solr 6. Distributed Search Using Apache Solr 7. Scaling Solr through Sharding, Fault Tolerance, and Integration 8. Scaling Solr through High Performance 9. Solr and Cloud Computing 10. Scaling Solr Capabilities with Big Data A. Sample Configuration for Apache Solr Index

Improving runtime search for Solr


To speed up the querying and rendering of results, it is important to optimize the runtime of Apache Solr. The optimization of Solr runtime can be achieved in various ways, which will be discussed shortly.

Pagination

A typical search screen provides results on a single page with pagination. Apache Solr provides support for pagination at the search level, thereby enabling search responses. When Solr fetches results for the queries passed by the user, Apache Solr allows users to limit the fetching of the result to a certain number by specifying the rows attribute in the search queries. For example, the following query will return 10 rows of results from 10 to 20:

q=Sudarshan&rows=10&start=10

The pagination parameters can also be specified in solrconfig.xml as queryResultWindowSize. By having a minimum page size, the response of a search over Apache Solr becomes fast, since it does not have to wait until all results are captured.

Reducing Solr response footprint...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image