Skip to content

Redislabs-Solution-Architects/address-ac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Address Autocomplete

Blog

https://joeywhelan.blogspot.com/2023/02/autocomplete-with-redis-search.html

Contents

  1. Summary
  2. Architecture
  3. Features
  4. Prerequisites
  5. Installation
  6. Usage

Summary

This is a Javascript-based demo of the Redis Search + Suggest functionality. Address data is obtained from a Canadian government website. Two data sets (Prince Edward Island and Northwest Territories) are inserted into Redis as JSON documents. They are indexed by address and two suggestion dictionaries are built: one with full address info (to include street number), the other with just street names.

Architecture

architecture

Features

  • ExpressJS-based REST API server, data loading functionality, and HTML GUI to demonstrate address autocomplete.

Prerequisites

  • Docker
  • Docker Compose

Installation

git clone https://github.com/Redislabs-Solution-Architects/address-ac.git && cd address-ac

Usage

Server start-up

docker compose up -d

Server shutdown

docker compose down

GUI Access

http://localhost:8000