Skip to content
forked from dermotte/liresolr

Putting LIRE into Solr - an ongoing project

License

Notifications You must be signed in to change notification settings

soruly/liresolr

 
 

Repository files navigation

liresolr

License GitHub Workflow Status Docker Docker Image Size Discord

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"

About

Putting LIRE into Solr - an ongoing project

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 76.4%
  • HTML 14.9%
  • Python 7.1%
  • JavaScript 1.5%
  • Dockerfile 0.1%