Start reading Apache Solr 4 Cookbook on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Apache Solr 4 Cookbook

Apache Solr 4 Cookbook [Kindle Edition]

Rafal Kuc
4.5 out of 5 stars  See all reviews (2 customer reviews)

Print List Price: £27.99
Kindle Price: £17.50 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £10.49 (37%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £17.50  
Paperback £27.99  
Kindle Daily Deal
Kindle Daily Deal: At least 60% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Customers Who Bought This Item Also Bought

Product Description

Product Description

In Detail

Apache Solr is a blazing fast, scalable, open source Enterprise search server built upon Apache Lucene. Solr is wildly popular because it supports complex search criteria, faceting, result highlighting, query-completion, query spell-checking, and relevancy tuning, amongst other numerous features.

"Apache Solr 4 Cookbook" will show you how to get the most out of your search engine. Full of practical recipes and examples, this book will show you how to set up Apache Solr, tune and benchmark performance as well as index and analyze your data to provide better, more precise, and useful search data.

"Apache Solr 4 Cookbook" will make your search better, more accurate and faster with practical recipes on essential topics such as SolrCloud, querying data, search faceting, text and data analysis, and cache configuration.

With numerous practical chapters centered on important Solr techniques and methods, Apache Solr 4 Cookbook is an essential resource for developers who wish to take their knowledge and skills further. Thoroughly updated and improved, this Cookbook also covers the changes in Apache Solr 4 including the awesome capabilities of SolrCloud.


"Apache Solr 4 Cookbook" is written in a helpful, practical style with numerous hands-on recipes to help you master Apache Solr to get more precise search results and analysis, higher performance, and reliability.

Who this book is for

This book is for developers who wish to learn how to master Apache Solr 4. This book will specifically appeal to developers who wish to quickly get to grips with the changes and new features of Apache Solr 4. This book is also handy as a practical guide to solving common problems and issues when using Apache Solr.

About the Author

Rafal Kuc

Rafal Kuc is a born team leader and software developer. Currently working as a Consultant and a Software Engineer at Sematext Inc, where he concentrates on open source technologies such as Apache Lucene and Solr, ElasticSearch, and Hadoop stack. He has more than 10 years of experience in various software branches, from banking software to e-commerce products. He is mainly focused on Java, but open to every tool and programming language that will make the achievement of his goal easier and faster. Rafal is also one of the founders of the site, where he tries to share his knowledge and help people with their problems with Solr and Lucene. He is also a speaker for various conferences around the world such as Lucene Eurocon, Berlin Buzzwords, and ApacheCon.

Rafal began his journey with Lucene in 2002 and it wasn't love at first sight. When he came back to Lucene later in 2003, he revised his thoughts about the framework and saw the potential in search technologies. Then Solr came and that was it. From then on, Rafal has concentrated on search technologies and data analysis. Right now Lucene, Solr, and ElasticSearch are his main points of interest.

Product details

  • Format: Kindle Edition
  • File Size: 1549 KB
  • Print Length: 330 pages
  • Page Numbers Source ISBN: 1782161325
  • Publisher: Packt Publishing (25 Jan 2013)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B00AO2VXC8
  • Text-to-Speech: Enabled
  • X-Ray:
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: #264,250 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

3 star
2 star
1 star
4.5 out of 5 stars
4.5 out of 5 stars
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Great explanation of new features 15 Mar 2013
By Johnboy
I have been using the Beta version of SOLR 4.0 for quite some time now and have been really looking forward to this book coming out. Having owned Solr 1.4 Enterprise Search Server before this one, this has been well overdue for me to buy.

The bits I liked the most about this book are the sections on the Data Import Handler, the longingly wanted updating of single fields in documents and faceting! Faceting has been an absolute livesaver for generating navigation and breadcrumbs for my ecommerce website projects and this book goes into more details.

I generally like these books because they always back up every explanation with an example, so if it doesn't quite give you what you were looking for it at least leaves you in a place when you can find your own way from there.

Keep up the great work!
Comment | 
Was this review helpful to you?
4.0 out of 5 stars Hands-on, but not easy 23 Jan 2014
I really enjoyed the hands-on approach of this book, each chapter is divided in a 3 parts: 1. what you're going to do, 2. how to do it, 3. how it works. This makes the book easier to read and more usable as a reference when you're actually using the learned knowledge.
But be warned, this book isn't for Solr beginners. Some of the queries and configurations are quite complex and hard to follow, so a basic Solr/jetty knowledge is required!
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 3.7 out of 5 stars  9 reviews
4 of 4 people found the following review helpful
3.0 out of 5 stars Great idea - great set of concepts - poor attention to detail 6 May 2013
By Adrian Newby - Published on
Format:Kindle Edition|Verified Purchase
I have to start off by saying that, without this book, I don't think I could have got my first Solr Cloud installation off the ground.

The book's layout, it's non-nonsense "do this, do that" style and the section at the end of each recipe, explaining what you just did are all great elements.

However, where this book suffers is in its attention to detail. While the author states clearly that it was based on Solr 4.0, many of the examples are either incorrect, incomplete or obsolete.

For example, using default="NEW" is discouraged in Solr 4, in favor of UUIDUpdateProcessorFactory.

Another example involves setting UTF-8 URI Encoding for Tomcat, which is an overhang from Solr 3 and no longer required in Solr 4.

The above examples are inconvenient. Some omissions are more serious. For example, in the section describing auto-generation of UUIDs for uploaded documents, while the description for setting up a UUID RequestProcessorChain is pretty straightforward, the documentation leaves out the key fact that requestHandler for /extract/update in solrconfig.xml needs to be told to invoke the uuid requestProcessor chain. Without this, the auto-generator will never be called and documents will fail upload with NULL unique keys.

Another bugbear is that spaces between words in fixed space font are often dropped. If the word looks long, chances are you're missing a space. (Note: This was on my Kindle Edition book. May not be the case in print.) This makes some commands fail.

These are just a few examples.

I wish I could recommend the book more highly but its many, many errors and omissions make this impossible. If the book goes through another round of proofreading and errata correction, it could be a solid 4-star.
3 of 3 people found the following review helpful
2.0 out of 5 stars meh 25 Nov 2013
By Andy - Published on
Format:Kindle Edition|Verified Purchase
if you are new to solr I would pass on this book. I personally need to come up to speed quickly on query. The examples are hard to follow and require significant understanding of solr query. If had this back ground I doubt you would find the recipes useful. You probably already know them

Also the kindle reader on mac is awkward to use. basic stuff like scrolling and font sizing do not work well.

For got to mention Its really hard to use the sample code. Its hard to figure out what code sample "task" maps to a particular recipe in the book. Finally never ever use spaces in file or directory names. It make using the code much harder
1 of 1 people found the following review helpful
4.0 out of 5 stars Usefull advice about implementing real world features 8 Mar 2014
By Patrick van Efferen - Published on
Working with Solr can be difficult at times. There are lots of resources on the web where you can find in-depth information about how the nitty gritty mechanism in Solr work.

Sometimes you need a more practical resource. You will find this in the Apache Solr 4 Cookbook. The book contains lots of practical day to day use cases. In my case I have a general understanding of Solr and how to implement it. The the book 'Apache Solr 3 enterprise search server' which is a bit older but still very good source of information about the technical details helped a lot. Though I had the need for some practical explanations about how to go about solving Use Cases on a day to day basis.

The chapters about indexing and analysing, I found most useful as these contain the information you will need every time you setup a new Solr core or enhance the functionality for you customer.
If you do not have prior experience using Solr I would advice getting your base knowledge up to date first, as the examples and explanation expect you to already know quite a lot of Solr and searching in general.
1 of 1 people found the following review helpful
5.0 out of 5 stars A blueprint to getting running with Solr and getting good results 30 Jan 2014
By A. Zubarev - Published on
Before reading this book I have never even suspected so many kung-fu things can be done with Apache Solr (Lucene)!

To name a few: using a spellchecker, indexing binary formats (as PDF), breaking words apart, removing markup, handling plural and singular forms of words, incorporating geolocation, integration with a RDBMS.

This book definitely serves as a blueprint to doing development with Solr – it has all the necessary coverage from setting properly your environment up, incorporating other technologies as Nutch to going live and fine tune your system including an effective guide on how to deal with potential problems. As a bonus, there is a “Real-life” section that provides some help to tackling additional scenarios that the author faced in his practice, which did a lot of sense to me to be included into a Cookbook style of a publication.

The book is thoughtfully structured starting with a short description of a task at hand with how it was tackled to explaining in the details all the intricacies as what configuration needs to be affected.

The book is also very well structured paragraph-wise, it starts with the basics as installations and setting a few simple things up to dealing with more complex tasks as the book progresses toward the end. What I mean, Rafal has made this book very useful in an electronic form, for example a developer or (administrator) can quickly find in the book the needed information based on a desired accomplishment and even can copy and paste the sample configuration for further editing. To say more, the book has a good reference to several relevant supporting/complementing tools. And it would be needless to say that at the same time the author delves deep enough into how-tos of using the Solr GUI itself.

While I am still expecting my older laptop rebuilt I am really willing to get my hands on Apache Solr, this is how whetted my appetite is to explore it more after I am nearly done reading the book.

Verdict: I am sure having this book beside you will make you feel more confident in delivering your project on time with the best possible results.

It is a full 5 out 5 star rating, a big thank you Rafal and Packt Publishing!
5.0 out of 5 stars packed full of great recipies 26 Jan 2014
By Bill Jones - Published on
Format:Kindle Edition
I would disagree about googling for the recipies in this cookbook, it's something anyone could say about any technical resource. I found this book to be extremly well written and organized. The recipie on parsing data for near real time searches was well worth the cost of the book. If you aren't comfortable with apache or linux you wouldn't be looking into this book, but dont let that stop you from getting to know Solr because the Author walks you through each project.

The real life senarios are also priceless and all very well written, I am not an extensive user of Solr but tgese recepies are most common and now I have a goto source. The cloud setup was great and with more and more going into cloud computing it was great to see this made it into the book. Great book at a good price worthy of a cookbook title!
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category