Skip to content

Instantly share code, notes, and snippets.

@telamon
Created April 25, 2024 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save telamon/def3c925a29f15d99e7dd055f176ce99 to your computer and use it in GitHub Desktop.
Save telamon/def3c925a29f15d99e7dd055f176ce99 to your computer and use it in GitHub Desktop.
# API Design
PUT /$/bee/index
^ ^ ^^^^^ <-- hyperbee namespace
| |---- hyperbee special-path
|---- SPECIAL META charactter for hyper-fetch.
[
{ OPERATION1 },
{ OPERATION2 },
{ OPERATION3 }
]
response:
[
RESPONSE1,
RESPONSE2,
RESPONSE3,
]
# Keyschemes
Keyscheme for indexing by time as well as URL
/index/index-type=link/[URL]/[mtime] <-- contain id source-document, line: 33
/index/index-type=tag/[cats]/[mtime] <-- contain id source-document, line: 225
## All operations have to be flattened
text-search
links
tags
([
tag1: { url, mtime},
tag2: { url, mtime},
link1: { url, mtime},
link2: { url, mtime},
tag1: { url, mtime},
tag2: { url, mtime},
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment