Add Location-based Searching to Site with ElasticSearch
Go beyond simple text search. Learn to filter results by geographic distance, custom polygons, or bounding boxes with Elasticsearch.
#1about 5 minutes
Understanding the fundamentals of the Elasticsearch search engine
Elasticsearch is a read-optimized search engine based on Apache Lucene that operates via REST calls and is part of the ELK stack.
#2about 2 minutes
Setting up a local development environment with Docker
A local Elasticsearch and Kibana environment can be quickly configured and launched using a simple Docker Compose file.
#3about 6 minutes
Defining data structure with indexes and mappings
Data is organized into JSON documents within an index, and its structure is defined by a mapping that specifies data types like text, keyword, and geo_point.
#4about 11 minutes
Performing basic text searches and filters in Kibana
Use `match` queries for ranked text searching and `filter` queries for exact, non-scored matching, which can be combined using a `bool` query.
#5about 3 minutes
Exploring advanced features and efficient data ingestion
Elasticsearch offers fast performance, advanced features like "more like this" searches, and requires bulk inserts for efficient data loading.
#6about 8 minutes
Finding locations within a specific geographic radius
The `geo_distance` filter allows you to find all documents that fall within a specified circular radius from a central latitude and longitude point.
#7about 5 minutes
Sorting search results by proximity to a point
Instead of just filtering, you can use a `geo_distance` sort to order results by their actual distance from a given point, from nearest to farthest.
#8about 2 minutes
Querying for locations inside a custom polygon shape
The `geo_polygon` filter enables searching for documents whose geo-points fall within a custom shape defined by a series of latitude and longitude coordinates.
#9about 2 minutes
Modifying schemas and handling complex object arrays
You can add new properties to an existing mapping, and the `nested` data type should be used to properly index and query arrays of objects.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
03:31 MIN
Q&A on indexing, aggregations, and OpenSearch vs Elasticsearch
Search and aggregations made easy with OpenSearch and NodeJS
04:29 MIN
Introducing the core principles of Elasticsearch
Distributed search under the hood
03:59 MIN
Leveraging Redis for geospatial data management
Covid-19 - A crowdsourced map for checking supermarket wait times worldwide
04:01 MIN
Using Elasticsearch as a vector database for search
Harry Potter and the Elastic Semantic Search
03:42 MIN
Understanding the original search architecture at GetYourGuide
Optimizing Discovery: PostgreSQL's Role in Transforming GetYourGuide's Search
04:14 MIN
Audience Q&A on use cases, CMS, and SEO
One Framework To Rule Them All: Faster Websites With Astro
02:04 MIN
An overview of existing full-text search solutions
Writing a full-text search engine in TypeScript
03:09 MIN
Visualizing application performance with an Elastic dashboard
WeAreDevelopers Dev Digest Issue 116 - The new search wars…Welcome to edition 116 of the WeAreDevelopers Dev Digest. This time we talk about how the fight for AI and search dominance heats up with Google releasing a lot at their I/O event and OpenAI doing the same a day earlier…News and ArticlesA ton of thin...
Eli McGarvie
13 Google Search Tips For Developers to Search Like a ProGoogle. We all know it, and we all semi-love it. The product is great, just not a massive fan of all the data privacy stuff. You know, where they read all of your emails and share them with some three-letter agency in America. I guess there are some ...
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take partStarting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
Chris Heilmann
All the videos of Halfstack London 2024!Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
From learning to earning
Jobs that call for the skills explored in this talk.