https://github.com/soruly/liresolr
Putting LIRE into Solr - an ongoing project
https://github.com/soruly/liresolr
cbir image-search
Last synced: 4 months ago
JSON representation
Putting LIRE into Solr - an ongoing project
- Host: GitHub
- URL: https://github.com/soruly/liresolr
- Owner: soruly
- License: gpl-2.0
- Fork: true (dermotte/liresolr)
- Created: 2017-04-21T14:14:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T02:41:52.000Z (10 months ago)
- Last Synced: 2024-09-11T08:01:40.157Z (10 months ago)
- Topics: cbir, image-search
- Language: Java
- Homepage: http://www.lire-project.net
- Size: 35.1 MB
- Stars: 29
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# liresolr
[](https://github.com/soruly/liresolr/blob/master/LICENSE)
[](https://github.com/soruly/liresolr/actions)
[](https://hub.docker.com/r/soruly/liresolr)
[](https://hub.docker.com/r/soruly/liresolr)
[](https://discord.gg/K9jn6Kj)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
```bash
mkdir -p /var/mycores
sudo chown 8983:8983 /var/mycores
```Run the docker. This would create solr core and start the server.
```bash
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:
```bash
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
```bash
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"
```