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)
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.
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.
</add><add><doc><field name="id">3</field><field name="names">Sicilian defense</field><field name="moves">1. e4, c5,</field></doc></add> <add><doc><field name="id">4</field><field name="names">Queens gambit</field><field name="moves">1. d4, d5, 2. c4,</field></doc></ad
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.
import org.apache.solr.client.solrj.*
import org.apache.solr.client.solrj.impl.*
import org.apache.solr.common.*
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.
Very far from a complete API - only the most basic stuff.
And there are restrictions including 32 KB limit on strings
(VMS Pascal varying of char).
But maybe still interesting.
If anyone is interested then everything is available here:
 https://www.vajhoej.dk/arne/opensource/vms/vmspsolr-src-v0_1.zip
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.
Python:
$ type load.py
import solr
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 437 |
Nodes: | 16 (2 / 14) |
Uptime: | 193:52:09 |
Calls: | 9,135 |
Calls today: | 2 |
Files: | 13,432 |
Messages: | 6,035,425 |