Solr 8 Examples
Solr 8 Examples

EMBARGO!

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

Last updated on 2018-07-29

About the Book

Exploring shipped examples

All the shipped examples

Explain every example that ships with Solr.

Based on https://www.outerthoughts.com/2015/11/oh-solr-home-where-art-thou/

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 https://github.com/arafalov/solr-presentation-2018-may

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.
https://www.eff.org/

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.

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...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! 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