Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Searchnos & Search on Nostr

Yoji Shidara
November 02, 2023
170

Searchnos & Search on Nostr

Nostrasia day 3
2023-11-03

Yoji Shidara

November 02, 2023
Tweet

Transcript

  1. "Hello, Nostr! Yo Bluesky!" Fanzine will be available on 12th

    November 2023, at Techbookfest 15, Ikebukuro https://nip-book.nostr-jp.org/
  2. I also wrote " 作ってわかる Nostr プロトコル (Understanding the Nostr

    Protocol by Writing Code)" for the series for Nostr,
  3. Mapnos: Map Notes and Other Stuff shows geotagged kind 1

    notes on a map. https://mapnos.vercel.app/
  4. ビールを一杯ください。 -> [" ビー", " ール", " ルを", " を一",

    " 一杯", " 杯く", " く だ", " さい", " い。"] (bi-gram)
  5. If we query " ルを ビー" (this doesn't make sense),

    it will be tokenized as [" ル を", " ビー"],
  6. [" ビー", " ール", " ルを", " を 一", "

    一杯", " 杯く", " くだ", " さい", " い。"] ⊇ [" ルを", " ビー"]
  7. Source Relay Indexer Elasticsearch Searchnos Relay Source Relay Indexer Elasticsearch

    Searchnos Relay loop loop Client REQ 1 query 2 response 3 EVENT (if matched) 4 EVENT (if matched) 5 EOSE 6 EVENT 7 EVENT 8 index request 9 wait 10 query 11 response 12 EVENT (if matched) 13 CLOSE 14 Client
  8. If we know the pubkey of the user, NIP-01 can

    filter the events from the user
  9. It's not a bad idea, but we need to immplement

    in many programming languages.