Awesome
liresolr
Apache Solr with LIRE built-in
Getting started
Create Solr cores
Create folders for solr cores first. The folder must be owned by uid and gid 8983
mkdir -p /var/mycores
sudo chown 8983:8983 /var/mycores
Run the docker. This would create solr core and start the server.
docker run -d -p 8983:8983 \
-v /var/mycores:/var/solr \
ghcr.io/soruly/liresolr:latest solr-precreate mycore \
/opt/solr/server/solr/configsets/liresolr
Head over to http://127.0.0.1:8983 and you should see your cores created and loaded
Note: DO NOT use the web UI to create solr cores.
Adding files for indexing
Assume you have xml files hashed by of LIRE, load the hash like this:
curl -X POST -H "Content-Type: text/xml" -d @hash.xml "http://127.0.0.1:8983/solr/mycore/update?wt=json&commit=true"
Submit files for searching
curl -X POST -H "Content-type: image/jpeg" --data-binary @image.jpg "http://127.0.0.1:8983/solr/mycore/lireq?field=cl_ha&ms=false&accuracy=100&candidates=1000000&rows=30"