Elasticsearch Blueprints
eBook - ePub

Elasticsearch Blueprints

Vineeth Mohan

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

Elasticsearch Blueprints

Vineeth Mohan

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

À propos de ce livre

If you are a data enthusiast and would like to explore and specialize on search technologies based on Elasticsearch, this is the right book for you. A compelling case-to-case mapping of features and implementation of Elasticsearch to solve many real-world use cases makes this book the right choice to start and specialize on Elasticsearch.

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 Elasticsearch Blueprints est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Elasticsearch Blueprints par Vineeth Mohan en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Web Development. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783984923
Édition
1
Sous-sujet
Web Development

Elasticsearch Blueprints


Table of Contents

Elasticsearch Blueprints
Credits
About the Author
About the Reviewer
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. Google-like Web Search
Deploying Elasticsearch
Communicating with the Elasticsearch server
Shards and replicas
Index-type mapping
Setting the analyzer
Types of character filters
Types of tokenizers
Types of token filters
Creating your own analyzer
Readymade analyzers
Using phrase query to search
Using the highlighting feature
Pagination
The head UI explained
Summary
2. Building Your Own E-Commerce Solution
Data modeling in Elasticsearch
Choosing between a query and a filter
Searching your documents
A match query
Multifield match query
Aggregating your results
Terms aggregation
Filter your results based on a date range
Implementing a prize range filter
Implementing a category filter
Implementation of filters in Elasticsearch
Searching with multiple conditions
Sorting results
Using the scroll API for consistent pagination
Autocomplete in Elasticsearch
How does FST help in faster autocompletes?
Hotel suggester using autocomplete
Summary
3. Relevancy and Scoring
How scoring works
How to debug scoring
The Ebola outbreak
Boost match in the title field column over description
Most recently published medical journals
The most recent Ebola report on healthy patients
Boosting certain symptoms over others
Random ordering of medical journals for different interns
Medical journals from the closest place to the Ebola outbreak
Medical journals from unhealthy places near the Ebola outbreak
Healthy people from unhealthy locations have Ebola symptoms
Relevancy based on the order in which the symptoms appeared
Summary
4. Managing Relational Content
The product-with-tags search problem
Nested types to the rescue
Limitations on a query on nested fields
Using a parent-child approach
The has_parent filter/the has_parent query
The has_child query/the has_child filter
The top_children query
Schema design to store questions and answers
Searching questions based on a criteria of answers
Searching answers based on a criteria of questions
The score of questions based on the score of each answer
Filtering questions with more than four answers
Displaying the best questions and their accepted answers
Summary
5. Analytics Using Elasticsearch
A flight ticket analytics scenario
Index creation and mapping
A case study on analytics requirements
Male and female distribution of passengers
Time-based patterns or trends in booking tickets
Hottest arrival and departure points
The correlation of ticket type with time
Distribution of the travel duration
The most preferred or hottest hour for booking tickets
The most preferred or hottest weekday for travel
The pattern between a passenger's purpose of visit, ticket type, and their sex
Summary
6. Improving the Search Experience
News search
A case-insensitive search
Effective e-mail or URL link search inside text
Prioritizing a title match over content match
Terms aggregation giving weird results
Setting the field as not_analyzed
Using a lowercased analyzer
Improving the search experience using stemming
A synonym-aware search
The holy box of search
The field search
The number/date range search
The phrase search
The wildcard search
The regexp search
Boolean operations
Words with similar sounds
Substring matching
Summary
7. Spicing Up a Search Using Geo
Restaurant search
Data modeling for restaurants
The nearest hotel problem
The maximum distance covered
Inside the city limits
Distance values between the current point and each restaurant
Restaurants out of city limits
Restaurant categorization based on distance
Aggregating restaurants based on their nearness
Summary
8. Handling Time-based Data
Overriding default mapping and settings in Elasticsearch
Index template creation
Deleting a template
The GET template
Multiple matching of templates
Overriding default settings for all indices
Overriding mapping of all types under an index
Overriding default field settings
Searching for time-based data
Archiving time-based data
Shard filtering
Running the optimized API on indices where writing is done
Closing older indices
Snapshot creation and restoration of indices
Repository creation
Snapshot creation
Snapshot creation on specific indices
Restoring a snapshot
Restoring multiple indices
The curator
Shard allocation using curator
Opening and closing of indices
Optimization
Summary
Index

Elasticsearch Blueprints

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: July 2015
Production reference: 1200715
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-492-3
www.packtpub.com

Credits

Author
Vineeth Mohan
Reviewers
Kartik Bhatnagar
Tomislav Poljak
Acquisition Editor
Harsha Bharwani
Content Development Editor
Ajinkya Paranjape
Technical Editor
Mrunmayee Patil
Copy Editor
Neha Vyas
Project Coordinator
Harshal Ved
Proofreader
Safis Editing
Indexer
Mariammal Chettiyar
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite

About the Author

Vineeth Mohan is an architect and developer. He currently works as the CTO at Factweavers Technologies and is also an Elasticsearch-certified trainer.
He loves to spend time studying emerging technologies and application...

Table des matiĂšres