[Info-vax] Solr client on VMS

Arne Vajhøj arne at vajhoej.dk
Mon Dec 9 21:04:40 EST 2024


On 12/6/2024 7:49 PM, Arne Vajhøj wrote:
> I have been looking a bit at Solr recently. For those that don't
> know Solr, then it is a text search engine - or more accurate it
> is a web frontend for the Lucene text search engine. Both
> Solr and Lucene are Apache projects (open source).
> 
> Solr is basically exposing a web API, so anything that can do
> HTTP POST can use Solr. But clients encapsulating the HTTP
> stuff does exist for many languages. On VMS then both JVM languages
> and Python should be able to use a standard client.
> 
> But there are also the traditional languages. Maybe it could
> be nice to be able to access Solr from one of those.  VMS Pascal
> is actually a very nice language, so I picked that. And I could
> reuse some stuff I had on the shelf.
> 
> pSolr (Pascal)-|->phttp (Pascal)->vms_http (C)->vms_socket (C)->sockets
>                 |->pJSON (Pascal)->cJSON (C, not written by me)

To do a little stress test I tried stuffing the content of
SYS$HELP:HELPLIB.HLB into Solr (two fields: path with the
help path and helptext with the first 32 KB of the text).

And then a little search program that output help commands
that can be copy pasted.

Examples:

$ mcr []hhint fread
help CRTL fread
help CRTL fread Description
help CRTL Version-Dependency_Tables All_OpenVMS_Versions
help CRTL pipe Description
$ mcr []hhint fread NOT fwrite
help CRTL fread
help CRTL fread Description
$ mcr []hhint fread OR fwrite
help CRTL fread
help CRTL fwrite
help CRTL Feature_Logical_Names DECC$STDIO_CTX_EOL
help CRTL fwrite Description
help CRTL fread Description
help CRTL Feature_Logical_Names DECC$WRITE_SHORT_RECORDS
help CRTL Version-Dependency_Tables All_OpenVMS_Versions
help CRTL pipe Description

Arne






More information about the Info-vax mailing list