Created
April 25, 2024 16:13
-
-
Save telamon/def3c925a29f15d99e7dd055f176ce99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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