Skip to content

Instantly share code, notes, and snippets.

View janhoy's full-sized avatar

Jan Høydahl janhoy

View GitHub Profile
@janhoy
janhoy / current-main.txt
Last active March 12, 2025 19:05
Solr start usage
Usage: solr start [-f] [--user-managed] [--host host] [-p port] [--server-dir directory] [-z zkHost] [-m memory]
[-e example] [--solr-home solr.solr.home] [--data-home solr.data.home] [--jvm-opts "jvm-opts"] [--verbose]
-f/--foreground Start Solr in foreground; default starts Solr in the background
and sends stdout / stderr to solr-PORT-console.log
--user-managed Start Solr in user managed aka standalone mode
See the Ref Guide for more details: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-types.html
--host <host> Specify the hostname for this Solr instance
@janhoy
janhoy / chatgpt-answer.md
Created August 19, 2024 22:21
Scout prompt answer

To align OpenSearch with the energy and recognition that comes from an iconic mascot, we should select a character that captures the essence of openness, collaboration, and search functionality while resonating with a broad audience. Here's a possible direction for the mascot:

Mascot Concept: "Scout"

Name: Scout
Species/Character: A curious and adventurous Fox
Symbolism:

  • Fox is often associated with intelligence, curiosity, and agility. These traits mirror the qualities of a search engine, particularly one that is highly performant and adaptable like OpenSearch.
  • Scout evokes the idea of searching, exploring, and discovering new possibilities—core themes of what OpenSearch does. The name also suggests reliability, as a scout typically leads the way, ensuring safety and success for others.
@janhoy
janhoy / log.log
Created June 5, 2024 10:05
Stack trace solr create collection
2024-06-05 09:45:08.258 INFO (OverseerThreadFactory-169-thread-5) [c:jan-5 s: r: x: t:] o.a.s.c.a.c.CreateCollectionCmd Create collection jan-5
2024-06-05 09:45:08.455 ERROR (OverseerThreadFactory-169-thread-5) [c:jan-5 s: r: x: t:] o.a.s.c.p.i.AttributeFetcherImpl Received unsolicited snitch tag heapUsage from node NodeImpl(test-solr-9-solrcloud-0.test-solr-9-solrcloud-headless.test-solr:8983_solr)
2024-06-05 09:45:08.455 ERROR (OverseerThreadFactory-169-thread-5) [c:jan-5 s: r: x: t:] o.a.s.c.p.i.AttributeFetcherImpl Received unsolicited snitch tag sysLoadAvg from node NodeImpl(test-solr-9-solrcloud-0.test-solr-9-solrcloud-headless.test-solr:8983_solr)
2024-06-05 09:45:08.455 ERROR (OverseerThreadFactory-169-thread-5) [c:jan-5 s: r: x: t:] o.a.s.c.p.i.AttributeFetcherImpl Received unsolicited snitch tag freedisk from node NodeImpl(test-solr-9-solrcloud-0.test-solr-9-solrcloud-headless.test-solr:8983_solr)
2024-06-05 09:45:08.455 ERROR (OverseerThreadFactory-169-thread-5) [c:jan-5 s: r: x: t:] o.a.s.c.p.i.A
@janhoy
janhoy / solr-dependency-report.txt
Created February 25, 2022 09:38
Solr dependency scan
> Task :dependencyUpdates
------------------------------------------------------------
: Project Dependency Updates (report to plain text file)
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- ca.cutterslade.analyze:ca.cutterslade.analyze.gradle.plugin:1.8.3
- com.cybozu.labs:langdetect:1.1-20120112
- com.diffplug.spotless:com.diffplug.spotless.gradle.plugin:6.3.0
@janhoy
janhoy / Solr dependencies main.txt
Created February 23, 2022 13:09
Solr dependencies
runtimeClasspath - Runtime classpath of source set 'main'.
+--- project :solr:core
| +--- org.apache.lucene:lucene-core:9.0.0
| +--- org.apache.lucene:lucene-analysis-common:9.0.0
| | \--- org.apache.lucene:lucene-core:9.0.0
| +--- org.apache.lucene:lucene-queries:9.0.0
| | \--- org.apache.lucene:lucene-core:9.0.0
| +--- org.slf4j:slf4j-api:1.7.36
| +--- project :solr:solrj
| | +--- org.eclipse.jetty.http2:http2-client:9.4.44.v20210927
@janhoy
janhoy / branchToTag.sh
Last active March 10, 2021 22:21
branchToTag.sh
#!/bin/bash
branctotag() {
BRANCH=$1
REMOTE=$2
if [[ $# -lt 2 ]]; then
echo "Usage: ./branchToTag.sh <branch-name> <remote>"
echo "Example: ./branchToTag.sh jira/SOLR-123 origin"
echo " ...will create tag history/branches/lucene-solr/jira/SOLR-123 and delete the branch"
exit 0
@janhoy
janhoy / split_shard.md
Created March 4, 2021 13:12
Splitting a shard in Solr
@janhoy
janhoy / solr_redirects.conf
Created March 4, 2021 10:38
solr_redirects.conf
#### https://issues.apache.org/jira/browse/SOLR-10595
# ############# NOTE TO INFRA ##################
#
# The RewriteCond/RewriteRules below were tested in a mocked up system where
# they were placed in an .htaccess, and the following RewriteMap directives existed
# for the VirtualHost being used...
#
RewriteMap solr_id_to_new "txt:/home/hossman/tmp/solr_id_to_new.map.txt"
@janhoy
janhoy / PYRAMID.txt
Created March 1, 2021 14:57
failures-pdf
This file has been truncated, but you can view the full file.
sia-crawler_1 | 2021-02-26 16:53:09.205 [pool-2-thread-2] WARN no.ra.sia.crawler.util.PyramidTiffConverter - /mnt/arkiv/foto/ra3/Fotografer/Arve_Kjersheim/Kåfjord/2018_okt/_DSC0764.tif -- convert-im6.q16: Sanity check on directory count failed, zero tag directories not supported. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/604.
sia-crawler_1 | 2021-02-26 16:53:09.205 [pool-2-thread-2] WARN no.ra.sia.crawler.util.PyramidTiffConverter - /mnt/arkiv/foto/ra3/Fotografer/Arve_Kjersheim/Kåfjord/2018_okt/_DSC0764.tif -- convert-im6.q16: Failed to read directory at offset 108485848. `TIFFReadDirectory' @ error/tiff.c/TIFFErrors/604.
sia-crawler_1 | 2021-02-26 16:53:09.205 [pool-2-thread-2] WARN no.ra.sia.crawler.util.PyramidTiffConverter - /mnt/arkiv/foto/ra3/Fotografer/Arve_Kjersheim/Kåfjord/2018_okt/_DSC0764.tif -- convert-im6.q16: no images defined `ptif:/mnt/sia/ptif/4/4f/4fWwUNZm7ZorYykAUasH6K.tif' @ error/convert.c/ConvertImageCommand/3258.
sia-crawler_1 | 2021-02-26 16:53:14.504 [pool-2-thread-2] WARN

Start Solr with Docker and create a core with our config:

docker run --rm --name solr-example -v $(pwd):/docker -p 8983:8983 -d solr:8.5
docker exec solr-example solr create -p 8983 -c Collection -d /docker/Collection/conf

Index one nested block-join document with two children, each having each one child.