Una introducción a Elasticsearch y a cómo mejorar las búsquedas de texto en aplicaciones usando las herramientas de tokenizadores, analizadores e índices invertidos que brinda Elasticsearch.
4. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
5. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
6. Search engine
NoSQL Database
Based on Lucene
WHAT IS ELASTICSEARCH
Open Source, written in Java
API REST via JSON
Scalable
Really fast
Rootstrap Improving App Searches with ElasticSearch
7. Rootstrap Improving App Searches with ElasticSearch
ELK Stack
Collect and Transform Search and Analyze Visualize and Manage
8. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
9. SOME COMPANIES THAT USE ELASTICSEARCH
Rootstrap Improving App Searches with ElasticSearch
13. WHEN CAN WE USE IT?
Rootstrap Improving App Searches with ElasticSearch
14. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
15. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
- Text analyzers and tokenizers
- Indexes
Rootstrap Improving App Searches with ElasticSearch
16. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
- Text analyzers and tokenizers
- Indexes
Rootstrap Improving App Searches with ElasticSearch
17. HOW DOES IT WORK?
Text analyzers & tokenizers
Configuring built-in analyzers
Fingerprint Analyzer
Keyword Analyzer
Language Analyzers
Pattern Analyzer
Simple Analyzer
Standard Analyzer
Stop Analyzer
Whitespace Analyzer
Custom Analyzer
Char Group Tokenizer
Classic Tokenizer
Edge n-gram tokenizer
Limitations of the max_g ram parameter
Keyword Tokenizer
Letter Tokenizer
Lowercase Tokenizer
N-gram tokenizer
Path Hierarchy Tokenize
Path Hierarchy Tokenizer Example
Pattern Tokenizer
Simple Pattern Tokenizer
Simple Pattern Split Tokenizer
Standard Tokenizer
Thai Tokenizer
UAX URL Email Tokenizer
Whitespace Tokenizer
Analyzers Tokenizers
Rootstrap Improving App Searches with ElasticSearch
18. Text analyzers & tokenizers
HOW DOES IT WORK?
≠
Agenad telefónica. De 2018
Agenda de teléfonos 2018
Rootstrap Improving App Searches with ElasticSearch
19. Text analyzers
HOW DOES IT WORK?
Rootstrap Improving App Searches with ElasticSearch
Agenad telefónica. De 2018
Lowercase agenad telefónica. de 2018
Charfilter agenad telefonica. de 2018
Tokenizer agenad telefonica de 2018
Stopwords agenad telefonica 2018
“Fuzzy” agenda telefonica 2018
Stemmer agend telef 2018
agenda de telefonos 2018
Lowercase agenda de telefonos 2018
Charfilter agenda de telefonos 2018
Tokenizer agenda de telefonos 2018
Stopwords agenda telefonos 2018
Stemmer agend telef 2018
20. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
- Text analyzers and tokenizers
- Indexes
Rootstrap Improving App Searches with ElasticSearch
21. ID Description
1 Here is a text
2 Another text here
3 A yey here
HOW DOES IT WORK?
Direct Index
Rootstrap Improving App Searches with ElasticSearch
22. ID Description
1 Here is a text
2 Another text here
3 A yey here
HOW DOES IT WORK?
Direct Index
text
Rootstrap Improving App Searches with ElasticSearch
23. ID Description
1 Here is a text
2 Another text here
3 A yey here
HOW DOES IT WORK?
Direct Index
SELECT * FROM model WHERE * LIKE '%text%'
Rootstrap Improving App Searches with ElasticSearch
text
24. Key ID
here 1, 2, 3
is 1
a 1, 3
text 1, 2
another 2
yey 3
ID Description
1 Here is a text
2 Another text here
3 A yey here
HOW DOES IT WORK?
Inverted Index
Rootstrap Improving App Searches with ElasticSearch
text
25. Key ID
here 1,1, 2,3, 3,3
is 1, 2
a 1, 3, 3, 1
text 1,4, 2,2
another 2,1
yey 3,2
ID Description
1 Here is a text
2 Another text here
3 A yey here
HOW DOES IT WORK?
Inverted Index
Rootstrap Improving App Searches with ElasticSearch
27. - Document
- Index
- Shards
- Node
- Cluster
- Replica
HOW DOES IT WORK?
Some things we
should know
Rootstrap Improving App Searches with ElasticSearch
28. SQL Elasticsearch
Table Index
Row Document
Schema Implicit
Database Cluster
HOW DOES IT WORK?
SQL vs ElasticSearch
Rootstrap Improving App Searches with ElasticSearch
36. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
39. What is Elasticsearch?01
When can we use it?02
How does it work?03
Queries & Filters04
Sample app in Rails05
CONTENTS
Rootstrap Improving App Searches with ElasticSearch
42. Rootstrap Improving App Searches with ElasticSearch
CONCLUSIONS
Advantages Disadvantages
Faster and better searches
Scalable
More availability
Indexing implies extra time
Learn new API language
More resources