https://github.com/prodis/elgoob3
https://github.com/prodis/elgoob3
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/prodis/elgoob3
- Owner: prodis
- Created: 2015-05-04T17:49:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T12:26:01.000Z (about 11 years ago)
- Last Synced: 2025-12-15T19:26:38.549Z (8 months ago)
- Language: Ruby
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elgoob3
* Words are stored, as well as related page IDs.
* Only words match in search.
* I didn’t use any algorithm to search.
## Running
```console
$ bundle install
$ bundle exec rackup
```
The application will be available on http://localhost:9292.
Index examples:
```console
curl -i 'http://localhost:9292/index' -d '{ "pageId": 100, "content": "What is your problem, Watson? Do you have it?" }'
curl -i 'http://localhost:9292/index' -d '{ "pageId": 200, "content": "Houston, we have a problem." }'
curl -i 'http://localhost:9292/index' -d '{ "pageId": 300, "content": "Elementary, dear Watson." }'
curl -i 'http://localhost:9292/index' -d '{ "pageId": 999, "content": "We are the problem, dear Watson." }'
```
Search example:
```console
http://localhost:9292/search?query=Elementary,%20dear%20Watson%20chalala
```