Store search results in Firebase and create permalinks to share them
$ npm install firebase
-
- Hoh, a new way of writing is being born.
- Would you understand if I told ChatGPT to use the new way of writing?
- I’ve rewritten myself into a new writing style.
- Get ID from URL in NextJS and display it? I said, and he wrote it down.
pages/result/[id].js
- Forgot to specify TypeScript and written in JS
- I asked him why I got a 404 even though it passed compile. I asked him and he gave me a checklist.
- I was asked to check if I had the right path. I checked and found that I had put it in
app/pages/result/[id].tsx
.- I know about the typical mistakes people tend to make w
Released: Vector Search in Nishio.
Page title image
-
/api/pages/:projectName/:pageTitle/icon
-
I was able to display âś….
-
Screen for administrator
- Search queries are stored and made available for the administrator to see.
- âś…Create a page with an explanation to that effect.
- âś…When you search, you can either put the results into Firebase and give out permalinks.
- âś…Publish
- Add ❎[URL Fragment Text Directives
- This is tricky.
- For example, if there’s Scrapbox notation in the mix, there’s no notation in the browser text, so there’s no hit.
- If we’re going to be serious about this, it needs to be plain text.
- No, when you open a new page, Scrapbox assumes it’s a line ID and takes it, so it doesn’t trigger the behavior it should.
- Commented out.
- Scrapbox is not working? It’s just that it’s not working, so it might work with other services.
- This is tricky.
- Search queries are stored and made available for the administrator to see.
-
Change the UI depending on whether you are an administrator (or specially authorized person) or not.
-
- Looks aside, the admin page is up. ts
- It’s like this, so you can only allow certain functions to certain people you know.
- I just had a chance to talk to him and I told him that I made this and got permission from hal_sk and yuiseki to make it a search target.
- Next action is to suck the data from the public project and index it without going through export
- Should be able to do it with the well backup project code.
GPT next pVectorSearch2023-06-07
This page is auto-translated from /nishio/pVectorSearch2023-06-06 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.