Solr Cookbook - Third Edition
eBook - ePub

Solr Cookbook - Third Edition

Rafal Kuc

Share book
  1. 356 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Solr Cookbook - Third Edition

Rafal Kuc

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Solr Cookbook - Third Edition an online PDF/ePUB?
Yes, you can access Solr Cookbook - Third Edition by Rafal Kuc in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783553150

Solr Cookbook Third Edition


Table of Contents

Solr Cookbook Third Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Apache Solr Configuration
Introduction
Running Solr on a standalone Jetty
Getting ready
How to do it...
How it works...
There's more...
I want Jetty to run on a different port
Buffer size is too small
Installing ZooKeeper for SolrCloud
Getting ready
How to do it...
How it works...
Migrating configuration from master-slave to SolrCloud
Getting ready
How to do it...
How it works...
Choosing the proper directory configuration
How to do it...
How it works...
Configuring the Solr spellchecker
How to do it...
How it works...
There's more...
More than one spellchecker
Using Solr in a schemaless mode
How to do it...
How it works...
Limiting I/O usage
Getting ready
How to do it...
How it works...
Using core discovery
How to do it...
How it works...
There's more...
Configuring SolrCloud for NRT use cases
How to do it...
How it works...
Configuring SolrCloud for high-indexing use cases
Getting ready
How to do it...
How it works...
Configuring SolrCloud for high-querying use cases
Getting ready
How to do it...
How it works...
Configuring the Solr heartbeat mechanism
How to do it...
How it works...
There's more...
Enabling and disabling the heartbeat mechanism
Changing similarity
Getting ready
How to do it...
How it works...
There's more...
Changing the global similarity
2. Indexing Your Data
Introduction
Indexing PDF files
How to do it...
How it works...
Counting the number of fields
How to do it...
How it works...
Using parsing update processors to parse data
Getting ready
How to do it...
How it works...
See also
Using scripting update processors to modify documents
Getting ready
How to do it...
How it works...
See also
Indexing data from a database using Data Import Handler
How to do it...
How it works...
There's more...
How to change the default behavior of deleting index contents at the beginning of a full import
Incremental imports with DIH
Getting ready
How to do it...
How it works...
See also
Transforming data when using DIH
Getting ready
How to do it...
How it works...
There's more...
Using scripts other than JavaScript
Indexing multiple geographical points
How to do it...
How it works...
See also
Updating document fields
How to do it...
How it works...
Detecting the document language during indexation
How to do it...
How it works...
There's more...
Language identification based on Apache Tika
Optimizing the primary key indexation
How to do it...
How it works...
See also
Handling multiple currencies
How to do it...
How it works...
There's more...
Setting up your own currency provider
3. Analyzing Your Text Data
Introduction
Using the enumeration type
How to do it...
How it works...
Removing HTML tags during indexing
How to do it...
How it works...
There's more...
Preserving defined tags
See also
Storing data outside of Solr index
How to do it...
How it works...
Using synonyms
How to do it...
How it works...
There's more...
Equivalent synonyms setup
See also
Stemming different languages
How to do it...
How it works...
There's more...
Using nonaggressive stemmers
How to do it...
How it works...
There's more...
Using the n-gram approach to do performant trailing wildcard searches
How to do it...
How it works...
Using position increment to divide sentences
How to do it...
How it works...
Using patterns to replace tokens
How to do it...
How it works...
There's more...
Using solr.PatternReplaceCharFilterFactory
4. Querying Solr
Introduction
Understanding and using the Lucene query language
How to do it...
How it works...
See also
Using position aware queries
How to do it...
How it works...
There's more...
Too many generated queries
Using boosting with autocomplete
How to do it...
How it works...
Phrase queries with shingles
How to do it...
How it works...
See also
Handling user queries without errors
Getting ready
How to do it...
How it works...
See also
Handling hierarchies with nested documents
How to do it...
How it works...
There's more...
Returning children documents in the query
Sorting data on the basis of a function value
How to do it...
How it works...
Controlling the number of terms needed to match
Getting ready
How to do it...
How it works...
See also
Affecting document score using function queries
How to do it...
How it works...
See also
Using simple nested queries
How to do it...
How it works...
Using the Solr document query join functionality
How to do it...
How it works...
Handling typos with n-grams
How to do it...
How it works...
Rescoring query results
How to do it...
How it works...
5. Faceting
Introduction
Getting the number of documents with the same field value
How to do it...
How it works...
There's more...
How to show facets with counts greater than zero
Lexicographical sorting of the faceting results
Getting the number of documents with the same value range
How to do it...
How it works...
Getting the number of documents matching the query and subquery
How to do it...
How it works...
Removing filters from faceting results
Getting ready
How to do it...
How it works...
Using decision tree faceting
How to do it...
How it works...
Calculating faceting for relevant documents in groups
Getting ready
How to do it...
How it works...
Improving faceting performance for low cardinality fields
Getting ready
How to do it...
How it works...
There's more...
Using per segment field cache for faceting calculation
Specifying the number of faceting threads
6. Improving Solr Performance
Introduction
Handling deep paging efficiently
How to do it...
How it works...
See also
Configuring the document cache
Getting ready
How to do it...
How it works...
Configuring the query result cache
Getting ready
How to do it...
How it works...
Configuring the filter cache
Getting ready
How to do it...
How it works...
Improving Solr query performance after the start and commit operations
How to do it...
How it works...
There's more...
Improving Solr performance after committing operations
Lowering the memory consumption of faceting and sorting
How to do it...
How it works...
Speeding up indexing with Solr segment merge tuning
How to do it...
How it works...
There's more...
Increasing the RAM buffer size to improve the indexing throughput
Speeding up querying with merge policy tuning
See also
Avoiding caching of rare filters to improve the performance
How to do it...
How it works...
Controlling the filter execution to improve expensive filter performance
Getting ready
How to do it...
How it works...
Configuring numerical fields for high-perfo...

Table of contents