GithubHelp home page GithubHelp logo

7kmco / redisearch-koajs-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 38 KB

An simple RediSearch api implementation in Koa.js

JavaScript 100.00%
redis redisearch redisearch-nodejs redisearch-api high-performance-search redis-search

redisearch-koajs-api's Introduction

Redisearch api

This repository is an rest api wrapper for RediSearch, for those who can't install redis and redisearch on their servers.

Starting App

First of all, make sure redis-server is running with RediSearch module properly loaded.

Then as usual, install node modules by running npm install and run npm run dev or npm start

This will start the application on port 3000 and is ready for serving api requests.

Available endpoints and request payloads

For list of available endpoints and request body objects, please take a look at /routes/redisearch.js

If there was enough enterests in this project, I will add more RediSearch functionality and complete documentation.

example search:

request body to http://localhost:3000/redisearch/search:

{
	"indexName": "indexName",
	"from": 0,
	"offset": 20,
	"query": "@title:%euo%@content:dolorem@date:[15253780 1525378723]",
	"noContent": false
}

For complete list of RediSearch commands, please check redisearch official website.

Any kind of suggestions pull requests and issues are highly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.