Live data from Hacker News

Lmgrep: Lucene-based grep-like utility

jocas.lt

11–20 of 27 posts

Re: Lmgrep: Lucene-based grep-like utility

#12

I’ve been looking for something exactly like this. I keep the complete text of articles I’ve enjoyed but, to-date, effective searching has meant spinning up an ES instance, which is painful. This is a specific use case that isn’t necessarily well-served by something like grep or ripgrep. I’ll definitely try this, thanks - looks very elegant.

Can you say more, I'm curious.

Is it automated in some way during web browsing, remembering to copy to a folder when you enjoyed it enough, or do you use a reading app/e-reader to read them so they're already downloaded

Re: Lmgrep: Lucene-based grep-like utility

#13

I think one of the best code search tools I've seen is the one here: https://source.chromium.org/chromium I guess that's what Google uses internally? Is there an open source alternative?

There is DXR from Mozilla but I'm not sure how generalised it is.

https://github.com/mozilla/dxr

There is also Sourcegraph.

Re: Lmgrep: Lucene-based grep-like utility

#14
post #13

I think one of the best code search tools I've seen is the one here: https://source.chromium.org/chromium I guess that's what Google uses internally? Is there an open source alternative?

There is DXR from Mozilla but I'm not sure how generalised it is. https://github.com/mozilla/dxr There is also Sourcegraph.

Thank you, DXR looks amazing.

Re: Lmgrep: Lucene-based grep-like utility

#15

I’ve been looking for something exactly like this. I keep the complete text of articles I’ve enjoyed but, to-date, effective searching has meant spinning up an ES instance, which is painful. This is a specific use case that isn’t necessarily well-served by something like grep or ripgrep. I’ll definitely try this, thanks - looks very elegant.

Have you considered using Docfetcher or Recoll?

Re: Lmgrep: Lucene-based grep-like utility

#16

I’ve been looking for something exactly like this. I keep the complete text of articles I’ve enjoyed but, to-date, effective searching has meant spinning up an ES instance, which is painful. This is a specific use case that isn’t necessarily well-served by something like grep or ripgrep. I’ll definitely try this, thanks - looks very elegant.

Have you considered using Docfetcher or Recoll?

Or Zotero?

Re: Lmgrep: Lucene-based grep-like utility

#17

I’ve been looking for something exactly like this. I keep the complete text of articles I’ve enjoyed but, to-date, effective searching has meant spinning up an ES instance, which is painful. This is a specific use case that isn’t necessarily well-served by something like grep or ripgrep. I’ll definitely try this, thanks - looks very elegant.

I'm the author of `lmgrep`. Happy to hear that you liked it. I have a similar user use-case: searching for blog posts that are in markdown source files.

Re: Lmgrep: Lucene-based grep-like utility

#20
Wow. This is nice. I can see putting it to use with csv and json with gron or something. I don’t have that much markdown to search, but having a tool be just there in the shell might change that.

I see they have enabled Snowball stemmers. I wonder if using other Lucene analyzers such as Voikko for Finnish is feasible. Snowball wasn’t particularly good when text get complex. I used to deal with Lucene and Solr way back when. Based on the OP I see Graal requires change.

Post reply on HN