/property-search-redis

A P.O.C property search using Redisearch

Primary LanguageGoThe UnlicenseUnlicense

property-search-redis

This is just a basic scaffold to get one started with a property search API. Full-text search is provided by RediSearch run in a container. A Python script is provided to load sample data into RediSearch. A GO app provides the search API.


Primer for RediSearch:
https://www.youtube.com/watch?v=infTV4ifNZY&list=PLratyGi2ixLsqd3SRcsJticE9yt5LDX3R


Quick Start with Docker

  1. Run: docker-compose up
  2. Open your browser with a valid search URL. e.g. http://localhost:3000/search?q=9005

Data will automatically be loaded from "MessySampleData.txt"


API Search Reference

All searches use the HTTP GET method. Just set the appropriate query params as needed:

A health check URL is provided at /. e.g. GET http://localhost:3000/ returns HTTP Status 200 with {"message":"OK"}

Read the Go code in goapp/server.go for additional reference.