Apache Solr Search Patterns
eBook - ePub

Apache Solr Search Patterns

Jayant Kumar

Partager le livre
  1. 316 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Apache Solr Search Patterns

Jayant Kumar

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Apache Solr Search Patterns est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Apache Solr Search Patterns par Jayant Kumar en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Programmazione open source. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783981847

Apache Solr Search Patterns


Table of Contents

Apache Solr Search Patterns
Credits
About the Author
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
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Solr Indexing Internals
The job site problem statement – Solr indexing fundamentals
Working of analyzers, tokenizers, and filters
Handling a multilingual search
Measuring the quality of search results
The e-commerce problem statement
The job site problem statement
Challenges of large-scale indexing
Using multiple threads for indexing on Solr
Using the Java binary format of data for indexing
Using the ConcurrentUpdateSolrServer class for indexing
Solr configuration changes that can improve indexing performance
Planning your commit strategy
Using better hardware
Distributed indexing
The SolrCloud solution
Summary
2. Customizing the Solr Scoring Algorithm
Relevance calculation
Building a custom scorer
Drawbacks of the TF-IDF model
The information gain model
Implementing the information gain model
Options to TF-IDF similarity
BM25 similarity
DFR similarity
Summary
3. Solr Internals and Custom Queries
Working of a scorer on an inverted index
Working of OR and AND clauses
The eDisMax query parser
Working of the eDisMax query parser
The minimum should match parameter
Working of filters
Using BRS queries instead of DisMax
Building a custom query parser
Proximity search using SWAN queries
Creating a parboiled parser
Building a Solr plugin for SWAN queries
Integrating the SWAN plugin in Solr
Summary
4. Solr for Big Data
Introduction to big data
Getting data points using facets
Field faceting
Query and range faceting
Radius faceting for location-based data
The geofilt filter
The bounding box filter
The rectangle filter
Distance function queries
Radius faceting
Data analysis using pivot faceting
Graphs for analytics
Getting started with Highcharts
Displaying Solr data using Highcharts
Summary
5. Solr in E-commerce
Designing an e-commerce search
Handling unclean data
Handling variations in the product
Sorting
Problems and solutions of flash sale searches
Faceting with the option of multi-select
Faceting with hierarchical taxonomy
Faceting with size
Implementing semantic search
Optimizations
Summary
6. Solr for Spatial Search
Features of spatial search
Java Topology Suite
Well-known Text
The Spatial4j library
Lucene 4 spatial module
SpatialRecursivePrefixTreeFieldType
BBoxField (to be introduced in Solr 4.10)
Indexing for spatial search
Searching and filtering on a spatial index
The bbox query
Distance sort and relevancy boost
Advanced concepts
Quadtree
Indexing data
Searching data
Geohash
Summary
7. Using Solr in an Advertising System
Ad system functionalities
Architecture of an ad distribution system
Requirements of an ad distribution system
Schema for a listing ad
Schema for targeted ads
Performance improvements
fieldCache
fieldValueCache
documentCache
filterCache
queryResultCache
Application cache
Garbage collection
Merging Solr with Redis
Summary
8. AJAX Solr
The purpose of AJAX Solr
The AJAX Solr architecture
The Manager controller
The ParameterStore model
Available parameters
Exposed parameters
Using the ParameterHashStore class
Extending the ParameterStore class
Widgets
Working with AJAX Solr
Talking to AJAX Solr
Displaying the result
Adding facets
Adding pagination
Adding a tag cloud
Performance tuning
Summary
9. SolrCloud
The SolrCloud architecture
Centralized configuration
Setting up SolrCloud
Test setup for SolrCloud
Setting up SolrCloud in production
Setting up the Zookeeper ensemble
Setting up Tomcat with Solr
Distributed indexing and search
Routing documents to a particular shard
Adding more nodes to the SolrCloud
Fault tolerance and high availability in SolrCloud
Advanced sharding with SolrCloud
Shard splitting
Deleting a shard
Moving the existing shard to a new node
Shard splitting based on split key
Asynchronous calls
Migrating documents to another collection
Sizing and monitoring of SolrCloud
Using SolrCloud as a NoSQL database
Summary
10. Text Tagging with Lucene FST
An overview of FST and text tagging
Implementation of FST in Lucene
Text tagging algorithms
Fuzzy string matching algorithm
The Levenshtein distance algorithm
Damerau–Levenshtein distance
Using Solr for text tagging
Implementing a text tagger using Solr
Summary
Index

Apache Solr Search Patterns

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1210415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-184-7
www.packtpub.com

Credits

Author
Jayant Kumar
Reviewers
Ramzi Alqrainy
Damiano Braga
Omar Shaban
Commissioning Editor
Edward Bowkett
Acquisition Editor
Vinay Argekar
Content Development Editor
Sumeet Sawant
Technical Editor
Tanmayee Patil
Copy Editors
Janbal Dharmaraj
Pooja Iyer
Project Coordinator
Akash Poojary
Proofreaders
Ting Baker
Simran Bhogal
Safis Editing
Index...

Table des matiĂšres