Giter VIP home page Giter VIP logo

thsearch's People

Contributors

bn-l avatar

Watchers

 avatar

thsearch's Issues

Second CLI argument can be relative (to the binary) or absolute

The second argument defaults to thsearch.txt and should allow for a relative (to the binary) or absolute path.

This will allow something like this:

thsearch something books

And an alternate books.txt configuration file next to the binary will search all books and look like this example:

+C:\ebooks\
>.epub

An error should be given if the file can't be found.

Standardised benchmarking

  • Benchmarking suite that sets up test files to be searched and then deletes them when finished.
  • Warns tester how much space is about to be taken up (should also test if it's available).
  • Is there a library that can help with this?

Index of file paths

Instead of looking for candidate files on each run do the following:

  • Build an index of candidate file paths, saving the modified time of all directories
  • On each run check if a directory has been modified,
  • If it has update the index
  • Run threads using the index

Progress bar

A progress bar on the command line implemented in ascii. E.g.:

[======··············] 60%

Should be easy implement by watching the ConcurrentQueue

Insane: Full index in memory (or just an index)

  • Runs as a background task

  • User can set maximum memory use. More recent files are given priority in the index.

  • Embedded binaries (images etc) can be linked to (for a future GUI version)

  • Index is stored as a reverse index:

    • First tokenisation (and removing stop words)
    • A forward index is then created of Documents and Tokens (with frequency--like tf-idf)
    • then a reverse index is created from the forward index of Tokens and the Documents the appear in (with frequency number)

Downsides:

  • Introduces state: The program must rebuild the index on file changed. It can do this atomically but it now needs to track the files in its scope.

fuzzy search option

Using a custom string contains (e.g. expanding the one in Searcher) to do fuzzy matching of a query stem to a db stem or a string distance algorithm.

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.