Skip to content

Instantly share code, notes, and snippets.

View janhoy's full-sized avatar

Jan Høydahl janhoy

View GitHub Profile
@janhoy
janhoy / security.json
Created December 12, 2019 22:42
JWT auth with whitelisting
{
"authentication": {
"blockUnknown": false,
"class": "solr.JWTAuthPlugin",
"jwk": {
"kty": "oct",
"use": "sig",
"kid": "k1",
"k": "7A02618BE6943C22FD81CAB9F6FCF063B6E1732C3614BC3ACA6032B6B3215CAF0D28A34FD423423CA3AC34BEA27D3F79",
"alg": "HS256"
@janhoy
janhoy / log.txt
Last active October 30, 2019 14:25
git force push error
$ git push -u gitbox adamwalz-master:master -f
Enumerating objects: 123923, done.
Counting objects: 100% (123923/123923), done.
Delta compression using up to 8 threads
Compressing objects: 100% (16186/16186), done.
Writing objects: 100% (123923/123923), 66.91 MiB | 9.63 MiB/s, done.
Total 123923 (delta 105724), reused 123922 (delta 105724)
remote: Error: Command 'git merge-base 413d343153e325b4c1f6ee1d2f3cd13a930ce3eb c12e28e11d197cad20010cec2042a41b4d41785f' returned non-zero exit status 1
To https://gitbox.apache.org/repos/asf/lucene-site.git
! [remote rejected] adamwalz-master -> master (pre-receive hook declined)
@janhoy
janhoy / solr-moin-redirects.txt
Created June 20, 2019 11:38
Solr Moin redirects
https://wiki.apache.org/solr/Support -> https://cwiki.apache.org/confluence/display/solr/Support
https://wiki.apache.org/solr/PublicServers -> https://cwiki.apache.org/confluence/display/solr/PublicServers
https://wiki.apache.org/solr/SolrTerminology -> http://lucene.apache.org/solr/guide/solr-glossary.html
https://wiki.apache.org/solr/SpatialSearch -> https://cwiki.apache.org/confluence/display/solr/Spatial+Search
https://wiki.apache.org/solr/HowToContribute -> https://cwiki.apache.org/confluence/display/solr/HowToContribute
https://wiki.apache.org/solr/SolrSecurity -> https://cwiki.apache.org/confluence/display/solr/SolrSecurity
https://wiki.apache.org/solr/SolrPerformanceProblems -> https://cwiki.apache.org/confluence/display/solr/SolrPerformanceProblems
https://wiki.apache.org/solr/NegativeQueryProblems -> https://cwiki.apache.org/confluence/display/solr/NegativeQueryProblems
https://wiki.apache.org/solr/IntegratingSolr -> https://cwiki.apache.org/confluence/display/solr/IntegratingSolr
https://wiki.apach
@janhoy
janhoy / refguide-suggestions.patch
Created June 3, 2019 23:13
refguide 8.0 suggestions
Index: solr/solr-ref-guide/src/major-changes-in-solr-8.adoc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- solr/solr-ref-guide/src/major-changes-in-solr-8.adoc (revision 7c81bb049922c0977c7e2edac9707212ae528a85)
+++ solr/solr-ref-guide/src/major-changes-in-solr-8.adoc (date 1559603431000)
@@ -224,7 +224,7 @@
* Authentication plugins can now intercept internode requests on a per-request basis.
@janhoy
janhoy / .editorconfig
Created February 22, 2019 13:18
editorconfig sample
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=false
insert_final_newline=false
indent_style=space
indent_size=4
[{*.mod,*.dtd,*.ent,*.elt}]
indent_style=space
26619 ERROR (qtp1373036750-31) [n:127.0.0.1:61613_solr c:mycoll s:shard1 r:core_node2 x:mycoll_shard1_replica_n1] o.a.s.c.s.i.s.ExceptionStream java.io.IOException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at https://127.0.0.1:61613/solr/mycoll: Expected mime type application/octet-stream but got text/html. <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>
at org.apache.solr.client.solrj.io.stream.TimeSeriesStream.open(TimeSeriesStream.java:296)
at org.apache.solr.client.solrj.io.stream.LetStream.open(LetStream.java:171)
at org.apache.solr.client.solrj.io.stream.ExceptionStream.open(ExceptionStream.java:54)
at org.apache.solr.handler.StreamHandler$TimerStream.open(StreamHandler.java:394)
at org.apache.solr.client.solrj.io.stream.TupleStream.writeMap(TupleStream.java:78)
at org.apache.solr.common.util.JsonTextWriter.writeMap(JsonTextWriter.java:164)
at org.apache.solr.common.util.TextWriter.writeVal(TextWriter.java:69)
at org.apache.solr.response.Tex
@janhoy
janhoy / original.json
Last active October 25, 2018 14:56
Example of what MediaStats looks like with various formats
{
"11": [{
"key": "2017-10-22T22:00:00.000Z",
"value": 0
}, {
"key": "2017-10-29T22:00:00.000Z",
"value": 0
}, {
"key": "2017-11-05T22:00:00.000Z",
"value": 0
@janhoy
janhoy / description.md
Created January 11, 2018 12:54
nested-problem
  1. Create an index

     solr create -c nested
    
  2. Index two documents, where one is nested.

     curl localhost:8983/solr/a/update -d '<add>
        <doc>
          <field name="id">friend</field>
    

other

@janhoy
janhoy / solr-release-notes70.md
Last active September 20, 2017 21:31
Solr 7 release notes

Release notes for Apache Solr 7.0.0

Solr is the popular, blazing fast, open source NoSQL search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly scalable, providing fault tolerant distributed search and indexing, and powers the search and navigation features of many of the world's largest internet sites.

Solr 7.0 is available for immediate download at: http://lucene.apache.org/solr/mirrors-solr-latest-redir.html

See http://lucene.apache.org/solr/7_0_0/changes/Changes.html for a full list of details.

Solr 7.0 Release Highlights:

  • Replica Types - There is now support for different replica types, that can handle updates differently.
@janhoy
janhoy / stack.txt
Created March 29, 2017 14:53
pf4j-stacktrace
100206 ERROR (main) [ ] r.f.p.AbstractPluginManager plugins/extraction-6.5.0.zip/classes/META-INF/MANIFEST.MF: Not a directory
ro.fortsoft.pf4j.PluginException: plugins/extraction-6.5.0.zip/classes/META-INF/MANIFEST.MF: Not a directory
at ro.fortsoft.pf4j.DefaultPluginDescriptorFinder.readManifest(DefaultPluginDescriptorFinder.java:57)
at ro.fortsoft.pf4j.ManifestPluginDescriptorFinder.find(ManifestPluginDescriptorFinder.java:34)
at ro.fortsoft.pf4j.AbstractPluginManager.loadPluginFromPath(AbstractPluginManager.java:753)
at ro.fortsoft.pf4j.AbstractPluginManager.loadPlugin(AbstractPluginManager.java:191)
at ro.fortsoft.pf4j.update.UpdateManager.installPlugin(UpdateManager.java:138)
at org.apache.solr.util.pf4j.Pf4jPlugins.install(Pf4jPlugins.java:96)
at org.apache.solr.util.pf4j.Pf4jPluginsTest.install(Pf4jPluginsTest.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)