Solr 8 Examples


Journalists and bloggers: please do not publish anything about this until the embargo is lifted!

Please contact the author for more information about when this is.

Solr 8 Examples

The études for focused learning

About the Book

Exploring shipped examples

All the shipped examples

Explain every example that ships with Solr.

Based on

Deep dive into the basic example

Fields, types, unusued configuration, schemaless mode

Deep dive into the techproducts example

Custom fields, browse handler, interesting queries

Deep dive into the films example

Configuration with API, interesting queries

X ways to do the same query

  1. Classic full length query
  2. Query vs. FilterQuery vs. filter()
  3. Variable substitutions
  4. JSON (and partial JSON with merge)
  5. Defaults in request handler
  6. Query parsers
  7. Post filter

Exploring custom examples

Simplest learning configuration

Based on

End-to-end example of setup, indexing, and querying

Creating a user directory

Expansion of the previous example to focus on names searching

Real life datasets

Based on expanded version of the ApacheCon 2018 presentation

Learning-to-rank dataset

Demonstrating Solr's Machine Learning implementation

Graph dataset

Demonstrating Solr's streaming and graph-processing

JSON all the way

Configuring, indexing and querying using JSON

DataImportHandler and other bulk imports

DIH ships in the box and is still useful, even if it rapidly ages. This will focus on its best use-cases, including some hard-to-find features.

TIKA Power

Solr ships with Tika to make content extraction easy from PDFs, MSWords and many other formats. This example will show the different plays Tika can be used, and how it can be configured.

Unicode magic

IBM's ICU4J library that ships with Solr can do some amazing tricks. Show some of them, expanding on updated Thai example.

Autocomplete and suggesters

Permutations and tradeoffs

Nested records

Parent/child records and searching them

Useful tools and resources

Talk and demonstrate Splainer, Postman, Solr Start resources, etc.

About the Author

Alexandre Rafalovitch
Alexandre Rafalovitch

I am a full-stack IT specialist with close to 20 years of industry and non-profit experience. I am an Apache Solr committer since 2016 and focus on beginners and onboarding experience within that project.

Causes Supported

Electronic Frontier Foundation

Defending your civil liberties in a digital world.

Based in San Francisco, EFF is a donor-supported membership organization working to protect fundamental rights regardless of technology.

From the Internet to the iPod, technologies are transforming our society and empowering us as speakers, citizens, creators, and consumers. When our freedoms in the networked world come under attack, the Electronic Frontier Foundation (EFF) is the first line of defense. EFF broke new ground when it was founded in 1990—well before the Internet was on most people's radar—and continues to confront cutting-edge issues defending free speech, privacy, innovation, and consumer rights today. From the beginning, EFF has championed the public interest in every critical battle affecting digital rights.

Authors have earned$9,883,643writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub