RE: index source code with solr combined with a SAST for cyber security purpose
Since you say, "I already started with Zoekt", I'm guessing you are facing some problem large enough to cause you to abandon your work so far. I say this because to "rewrite it in solr" means, among other things, rewriting all your Go code in Java, since Zoekt is in Go and Solr is in Java. I am guessing that instead, your best bet is to ask within the Zoekt community how to resolve the problem you are facing that's motivating you to switch. If, after that, you still want to switch, then before you switch, you should recreate the same scenario using Solr, and ask here *a specific question about how to use Solr* to address the issue. Only very rarely is the best approach to a problem to re-implement everything you've done so far in another language / another codebase. Said differently, if you cannot resolve your issues using Zoekt, it's doubtful they can be resolved with Solr. Whatever challenges you are facing working with the Zoekt code are likely to be the same challenges working with the Solr code. What you are attempting is challenging, plain and simple. Andrew Witt Senior Software Engineer II Learning A-Z, a Cambium Learning® Group Company andrew.w...@learninga-z.com -Original Message- From: anon anon Sent: Wednesday, March 19, 2025 7:33 PM To: users@solr.apache.org Subject: index source code with solr combined with a SAST for cyber security purpose Hello, I wanted to combine the power of a search engine with a SAST. I already started with Zoekt. I want to know if I should fork zoekt or solr. I am wondering: - If I can rewrite it in solr for more maintainability - if I SHOULD actually maintain zoekt instead of solar in order to not have to reinvent the whell (exactly like solr) - AND THE MOST IMPORTANT: would it be easier to implement, maintain and use the SAST from zoekt code base instead of solr? Maybe could I transfer the SAST part to another program and the zoekt search from zoekt software only? Whatis the best deal for the open source community please? Best regards.
Re: Solr 8 Reference Guide Not Loading Properly
Hi, We fixed our main website alrady: https://issues.apache.org/jira/browse/SOLR-17342 Except the artifacthub widgets on solr-operator page. We should just disable those scripts and do a static link instead. The 9.x series ref-guide seems to work, but the previous not. That's basically a bunch of static html+css+js lying around at https://svn.apache.org/repos/infra/sites/solr/guide/ So one could svn checkout all those, and make a a script that would replace lines like this https://code.jquery.com/jquery-3.5.1.min.js"; integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"> with a local variant, and at the same time drop the downloaded script into the "js/" folder. Jan > 20. mars 2025 kl. 15:44 skrev Houston Putman : > > Probably, and i was looking into that, but this is just beyond my extremely > limited web knowledge. So if someone was to drive that, i would be willing > to put in the effort to get the upload working for all affected versions. > > - Houston > > On Thu, Mar 20, 2025 at 5:48 AM Colvin Cowie > wrote: > >> Can the dependencies be minified/packed and bundled with the reference >> guide rather than fetching them? >> >> On Wed, 19 Mar 2025 at 21:47, Houston Putman wrote: >> >>> Yeah Apache turned this on recently, so there's no way around it, and >>> nothing that we did wrong on our end. >>> >>> I'm not sure how we fix this, but it really is a bad experience for users >>> (and us developers). >>> >>> - Houston >>> >>> On Wed, Mar 19, 2025 at 4:44 PM Alexandre Rafalovitch < >> arafa...@gmail.com> >>> wrote: >>> Loading CSS from 3rd party sites: https://content-security-policy.com/examples/blocked-csp/ Console error: a-quick-overview.html:13 Refused to load the stylesheet ' >> https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css >>> ' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' >> was not explicitly set, so 'style-src' is used as a fallback. a-quick-overview.html:14 Refused to load the stylesheet ' >>> >> https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css ' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' >> was not explicitly set, so 'style-src' is used as a fallback. On Wed, 19 Mar 2025 at 17:36, Chris Hostetter < >> hossman_luc...@fucit.org> wrote: > > : I'm not able to see any article text on the webpages for Solr >>> Reference > : Guide versions 8.6 through 8.11 (e.g. > : https://solr.apache.org/guide/8_11/a-quick-overview.html), and my > : colleagues are reporting the same issue. Did something break the > : rendering of these pages? > > Hmmm, good question -- I can reproduce what you describe on multiple > browsers, and whatever the problem is seems to be related to CSS -- >>> with > all stylesheets disabled the contents of all the pages are there. > > > Any HTML/CSS experts out there who can help debug this? > > > > -Hoss > http://www.lucidworks.com/ > >>> >>
Re: Solr 8 Reference Guide Not Loading Properly
Can the dependencies be minified/packed and bundled with the reference guide rather than fetching them? On Wed, 19 Mar 2025 at 21:47, Houston Putman wrote: > Yeah Apache turned this on recently, so there's no way around it, and > nothing that we did wrong on our end. > > I'm not sure how we fix this, but it really is a bad experience for users > (and us developers). > > - Houston > > On Wed, Mar 19, 2025 at 4:44 PM Alexandre Rafalovitch > wrote: > > > Loading CSS from 3rd party sites: > > https://content-security-policy.com/examples/blocked-csp/ > > > > > > Console error: > > a-quick-overview.html:13 Refused to load the stylesheet ' > > https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css > ' > > because it violates the following Content Security Policy directive: > > "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' was > > not explicitly set, so 'style-src' is used as a fallback. > > > > a-quick-overview.html:14 Refused to load the stylesheet ' > > > https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css > > ' > > because it violates the following Content Security Policy directive: > > "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' was > > not explicitly set, so 'style-src' is used as a fallback. > > > > > > On Wed, 19 Mar 2025 at 17:36, Chris Hostetter > > wrote: > > > > > > > > : I'm not able to see any article text on the webpages for Solr > Reference > > > : Guide versions 8.6 through 8.11 (e.g. > > > : https://solr.apache.org/guide/8_11/a-quick-overview.html), and my > > > : colleagues are reporting the same issue. Did something break the > > > : rendering of these pages? > > > > > > Hmmm, good question -- I can reproduce what you describe on multiple > > > browsers, and whatever the problem is seems to be related to CSS -- > with > > > all stylesheets disabled the contents of all the pages are there. > > > > > > > > > Any HTML/CSS experts out there who can help debug this? > > > > > > > > > > > > -Hoss > > > http://www.lucidworks.com/ > > > > > >
Re: Solr 8 Reference Guide Not Loading Properly
Probably, and i was looking into that, but this is just beyond my extremely limited web knowledge. So if someone was to drive that, i would be willing to put in the effort to get the upload working for all affected versions. - Houston On Thu, Mar 20, 2025 at 5:48 AM Colvin Cowie wrote: > Can the dependencies be minified/packed and bundled with the reference > guide rather than fetching them? > > On Wed, 19 Mar 2025 at 21:47, Houston Putman wrote: > > > Yeah Apache turned this on recently, so there's no way around it, and > > nothing that we did wrong on our end. > > > > I'm not sure how we fix this, but it really is a bad experience for users > > (and us developers). > > > > - Houston > > > > On Wed, Mar 19, 2025 at 4:44 PM Alexandre Rafalovitch < > arafa...@gmail.com> > > wrote: > > > > > Loading CSS from 3rd party sites: > > > https://content-security-policy.com/examples/blocked-csp/ > > > > > > > > > Console error: > > > a-quick-overview.html:13 Refused to load the stylesheet ' > > > > https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css > > ' > > > because it violates the following Content Security Policy directive: > > > "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' > was > > > not explicitly set, so 'style-src' is used as a fallback. > > > > > > a-quick-overview.html:14 Refused to load the stylesheet ' > > > > > > https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css > > > ' > > > because it violates the following Content Security Policy directive: > > > "style-src 'self' 'unsafe-inline' data:". Note that 'style-src-elem' > was > > > not explicitly set, so 'style-src' is used as a fallback. > > > > > > > > > On Wed, 19 Mar 2025 at 17:36, Chris Hostetter < > hossman_luc...@fucit.org> > > > wrote: > > > > > > > > > > > : I'm not able to see any article text on the webpages for Solr > > Reference > > > > : Guide versions 8.6 through 8.11 (e.g. > > > > : https://solr.apache.org/guide/8_11/a-quick-overview.html), and my > > > > : colleagues are reporting the same issue. Did something break the > > > > : rendering of these pages? > > > > > > > > Hmmm, good question -- I can reproduce what you describe on multiple > > > > browsers, and whatever the problem is seems to be related to CSS -- > > with > > > > all stylesheets disabled the contents of all the pages are there. > > > > > > > > > > > > Any HTML/CSS experts out there who can help debug this? > > > > > > > > > > > > > > > > -Hoss > > > > http://www.lucidworks.com/ > > > > > > > > > >