Coder Social home page Coder Social logo

exauto's Introduction

exAuto

NOTE: This is fully functional but I was testing the concept. I still don't really know if anyone should use it instead of something like a search engine.

A super fast Elixir in-memory autocomplete using Redis.

It uses the technique described in the classic post by antirezAuto Complete with Redis ” with one important improvement: you can find a text by any part of it, not just its prefix and not just the beginning of individual words.

For example, the phrase “The Green Rainforest” can be found by searching for “forest”, “green”, “info”, “een”, “rest”, etc.

It achieves that by slicing and storing the word in chunks of variable size. For instance “green” will generate "gr", "re", "ee", "en", "gre", "ren", "een", "gree", "reen", and "green".

Memory Usage

The amount of memory used will differ depending of the number and legth of your terms and the data stored with them, but you can expect to need approximately 120 x <bytes of your data>.

For example. the test data (cities.csv) of 65'500 rows and 1.2 MB uses a total of 147 MB on Redis.

The length of the base_key is not an important factor for that size, so it doesn't matter much if you use single letter of a full word.

exauto's People

Contributors

jpsca avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.