Skip to content

igor-karpukhin/python-redis-text-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Service to store texts and search words in them using Redis as a storage.

Installation

Hit docker-compose up -d --build to build container and launch the environment

API

By default, service will run on port 9000. Example: http://127.0.0.1:9000/

  • Show number of saved documents: /documents
    • Example: curl -v -X GET http://127.0.0.1:9000/documents
  • Index new document: POST /document/id
    • curl -H "Content-Type: application/json" -X POST -d "the third document text" http://127.0.0.1:9000/document/1
  • Get document by ID: GET /document/id
    • curl -v -X GET http://127.0.0.1:9000/document/1
  • Search word over all saved documents: /document?q=word
    • curl -v -X GET http://127.0.0.1:9000/document?q=sample
  • Delete document by ID: /document/id
    • curl -v -X DELETE http://127.0.0.1:9000/document/1

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages