News for hackers. Stuff that matters.
Re:Fast, Open Source Search by dariusj18 on Friday May 14, 2021 @10:50AM (#27154910)
If I wanted to create a crawler that only crawled a single site and use this as my site's search engine, what would be the best way to do that?
Re:Fast, Open Source Search by chabad360 on Friday May 14, 2021 @11:04AM (#27155043)
I would generate a JSON feed for the site and upload that (I am curious if this can detect duplicate records. Edit: it can using the UPSURT call), that way you could even have full text search.

A crawler is probably not the best tool for this if you use some form of site generation, as you can also use it to generate the information that goes into Typesense.

Re:Fast, Open Source Search by dariusj18 on Friday May 14, 2021 @11:20AM (#27155207)
I also want pdfs and other files indexed
Re:Fast, Open Source Search by jabo on Friday May 14, 2021 @12:15PM (#27155910)
Typesense operates on JSON documents. So you'd have to first extract the data from PDFs / office docs into JSON and then index it.

There are libraries that let you do the conversion:

https://github.com/modesty/pdf2json

https://github.com/microsoft/Simplify-Docx

Re:Fast, Open Source Search by yes_but_no on Friday May 14, 2021 @01:55PM (#27157446)
You can index your crawl data with StorkSearch[0] then use its js interface for search.

[0]https://stork-search.net/