:: krowemoh

Monday | 03 NOV 2025
Posts Links Other About Now

previous

2025-11-01
BASIC Wrappers for Solr

basic, search, solr, pick

I wrote a few routines to make using solr from pick easier. These are available in my TCL Utilities repo.

There is a few utilities to directly manage solr from TCL. These are:

There are also some subroutines that you can use inside a BASIC program:

   SUBROUTINE SOLR.ADD(STATUS.MATRIX,COLLECTION.NAME,JSON.DATA)
   SUBROUTINE SOLR.REMOVE(STATUS.MATRIX,COLLECTION.NAME,ID.LIST)

You can query a solr collection with the following:

   SUBROUTINE SOLR.QUERY(RAW.JSON,COLLECTION.NAME,QUERY,ORIGINAL.FIELD.LIST,ORIGINAL.HIGHLIGHT.LIST)

Solr works with JSON and so I use my JSON routines to actually build and process data from multivalue to put into solr collections.