Posts

solr attribute values

Feature stored="true" indexed="true" docValues="true" Purpose Fetch actual field in results Enables search/filtering Enables sorting, faceting, grouping Access style Row-based Inverted index (term → docs) Columnar (doc → value) Memory efficient? No (for many fields) Moderate Yes (when used correctly) Fast filtering? ❌ ✅ ✅ (especially for large sets) Fast faceting? ❌ ❌ (classic facet is slow) ✅ (modern JSON Facets) Tree DB Example ogr_geometry_wkt : yes (needed in query results) species : yes (to show in search hits) species : yes (to allow text search) meanht : yes (to filter trees by height) ...

Solr worked example with National Trees, from "Ground up" :)

This is minimum to get Solr 9.8 started:   <schema name="national_trees_MAY_2025" version="1.6">   <uniqueKey>ogr_fid</uniqueKey> <!-- Reserved/Required --> <field name="_version_" type="long" indexed="true" stored="true"/> <!-- Bools -->   <fieldType name="boolean" class="solr.BoolField"/>   <fieldType name="booleans" class="solr.BoolField" multiValued="true"/> <!-- Numerics --> <fieldType name="pint" class="solr.IntPointField"/> <fieldType name="pints" class="solr.IntPointField" multiValued="true"/> <fieldType name="plong" class="solr.LongPointField"/> <fieldType name="plongs" class="solr.LongPointField" multiValued="true"/> <fieldType name="pfloat" class="solr.FloatPointField"/...

Certbot

 sudo certbot renew --dry-run very good.

Bash

 CTRL - U clears any junk on line

Python ML Journey

First off:  This guy has some great overview tips for a framework to learn, and progress.  Including the Khan Academy Math Course, Python Libs that are cool, Kaggle and thoughts about community. https://www.youtube.com/@InfiniteCodes_ https://www.youtube.com/watch?v=qNxrPri1V0I #4 Essential Math for Machine Learning     Khan Academy Statistic and Probability Course

Solr Journey

Oh Solr.  So much power, so much fumbling. https://solr.apache.org/guide/solr/latest/index.html Environment I was able to run Solr in Windows, and utilise the multiline Curl commands in WSL by  add SOLR_JETTY_HOST=0.0.0.0 as last line to: notepad C:\solr\solr-9.8.1\bin\solr.in.cmd Stop and Start Solr.   This also makes it available on the LAN curl http://192.168.0.10:8983/solr/admin/info/system  from the WSL returns a lot of debugging information to verify. Start switches bin/solr start -p 8983     (this is one you want for dev/testing) -c   Core AND Collection depending on context bin/solr create -c mycore                                   (core name) bin/solr create_collection -c customers      (collection name) -p   Port  8983 is the typical one in the docs -e   Example (Don't use) Core vs Collect...

OSM open street map

https://switch2osm.org/serving-tiles/manually-building-a-tile-server-ubuntu-22-04-lts/ did this.  works.   using apache, but there was no specific apache config, but this worked and tile were appearing: sudo nano /etc/apache2/sites-available/000-default.conf Then inside the <VirtualHost *:80> block, add this at the end (but before </VirtualHost>): apache Copy Edit <IfModule mod_tile.c>     LoadTileConfigFile /etc/renderd.conf     ModTileRenderdSocketName /var/run/renderd/renderd.sock     ModTileRequestTimeout 0     ModTileMissingRequestTimeout 300 </IfModule> To add a new country need to drop previous. sudo systemctl stop renderd sudo systemctl stop apache2 And disconnect DB beaver. Then download new pbf cd /mnt/raid1/downloads wget https://download.geofabrik.de/europe/andorra-latest.osm.pbf Merge them: osmosis --rb andorra-latest.osm.pbf --rb azerbaijan-latest.osm.pbf --rb great-britain-latest.osm.pbf  ...