stereosteve on Nostr: I've been working on adding an ElasticSearch storage backend to the basic relayer. ...
I've been working on adding an ElasticSearch storage backend to the basic relayer.
ATM the indexing is very basic and it just sorts by most recent first.
But my plan is to add some better indexing for different Kinds and add some additional ranking signals. See note here:
https://github.com/stereosteve/relayer/blob/elasticsearch/storage/elasticsearch/elasticsearch.go#L140-L150My initial use case is for a private or hobby style relay... less worried about the "aggregate all of nostr"... nostr.band is doing a pretty good job with that.
But I also think ElasticSearch is a good backend for the read heavy workload of most relays what with the roaring bitset and document compression and all that. It'd be nice if all relays had decent search and we didn't have to punt to closed source things.
Published at
2023-02-14 01:53:48Event JSON
{
"id": "fcc20b9eed0892f957d90051cf964c357b6c66f8e3a139afd7cad6c97a914b55",
"pubkey": "29964f73ef82a3d101dac0d3aa6cf649bd8c8e9fba6cef253ea022a64ba9ee65",
"created_at": 1676339628,
"kind": 1,
"tags": [
[
"e",
"11725123ba02a917ea82a358efb5986d24dc6ecedfd079269fc2977bbd6ee9be",
"",
"reply"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"t",
"l140-l150"
]
],
"content": "I've been working on adding an ElasticSearch storage backend to the basic relayer.\n\nATM the indexing is very basic and it just sorts by most recent first.\n\nBut my plan is to add some better indexing for different Kinds and add some additional ranking signals. See note here:\n\nhttps://github.com/stereosteve/relayer/blob/elasticsearch/storage/elasticsearch/elasticsearch.go#L140-L150\n\nMy initial use case is for a private or hobby style relay... less worried about the \"aggregate all of nostr\"... nostr.band is doing a pretty good job with that.\n\nBut I also think ElasticSearch is a good backend for the read heavy workload of most relays what with the roaring bitset and document compression and all that. It'd be nice if all relays had decent search and we didn't have to punt to closed source things.",
"sig": "6503a0b83dc6f5fd1c2de59382d4958b0848250b8060ace26c03cbca2fd597dd0209ebde843cc8ad53965fead51071f268b67936ba711a9c699672e298cea3bc"
}