https://github.com/boyter/indexer
https://github.com/boyter/indexer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/boyter/indexer
- Owner: boyter
- License: agpl-3.0
- Created: 2023-05-24T23:17:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T22:53:25.000Z (over 1 year ago)
- Last Synced: 2025-03-18T10:38:02.806Z (about 1 year ago)
- Language: Go
- Size: 24.4 KB
- Stars: 24
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# indexer
Code for GopherConSyd 2023
So please clone this, and start interacting!
It's a small portion of the caisson index that powers searchcode.com with no dependencies.
Compile it and then run `indexer` in a directory with some code (not too much as it takes a while to index).
Run against this repository you should see something like the below,
```
$ indexer
currentBlockDocumentCount:40 currentDocumentCount:40 currentBlockStartDocumentCount:0
enter search term:
test
--------------
11 index result(s)
queryTime:2 matchTime:0
enter search term:
.git/hooks/pre-rebase.sample
20. if test "$#" = 2
47. if test -z "$not_in_master"
56. if test "$only_next_1" = "$only_next_2"
59. if test -z "$not_in_topic"
107. * Whenever you need to test or publish your changes to topic
```