What’s the difference between this and SearXNG?
Hister - Your Own Search Engine
Submitted 2 weeks ago by monica_b1998@lemmy.world to selfhosting@slrpnk.net
Comments
eutampieri@feddit.it 2 weeks ago
uuj8za@piefed.social 2 weeks ago
Huh, just from browsing the homepage, this seems to be more for searching local files.
eutampieri@feddit.it 2 weeks ago
Hmm, thanks. I did browse the page but I didn’t understand well that aspect
activistPnk@slrpnk.net 2 weeks ago
I currently use the find-grep function in emacs, which is basically:
find . -type f -exec grep ‘my.*search.*pattern’ {} +To do PDFs, I use something like
find . -type f -iname \*pdf -exec pdfgrep ‘my.*search.*pattern’ {} +My problem is generally when TOKEN1<space>TOKEN2 has a line break between tokens. It’s fucking annoying that grep is line-by-line. I wonder if Hister solves that problem. But from the website, I see no advanced syntax. I would love to search a pattern like
word1 w/s word2, which would find cases where word1 and word2 appear in the same sentence. Andword1 w/p word2to match cases where two words are in the same paragraph.cravl@slrpnk.net 2 weeks ago
Replacing line breaks with nulls first is an option. That’s a lot of extra processing for very large blocks of text though.
Using regular grep is possible with the right flags, or you could also use
pcre2grepwith the-Mflag, which should be available on every distro nowadays. See this Stack Overflow article for details.
Sibbo@sopuli.xyz 2 weeks ago
So did anybo try this and wake to share their experiences?
Also, why would I use this over e.g. YaCy?