search

Version, currently main branch1 version
  • main branchlatestApr 2, 2024

github.com/wladimir/search-cr

toy crystal search engine

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  search:
    github: wladimir/search-cr
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.11.2
License
MIT
Author
Vladimir Ćirković
Target
  • search from src/main.cr

Dependencies

This version declares no dependencies.

README

Search

Sample application in Crystal that indexes the contents of text files and allows lookup by specific terms.

Usage

❯ WORKERS=4 crystal run src/main.cr -- -q "monopolistic" -d "./input"
Found 'monopolistic' in file './input/input_3.txt' on lines: 2