laura-dietz / galagosample

Cheat Sheet implementation using Galago Search API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cheatsheet example for retrieving from a Galago search index using the Java API

Author: Laura Dietz and John Foley

For complementary information, see article "Galago - the secret documentation"

Dependencies

You can use maven to automatically download necessary dependencies. (see below)

Alternatively you can download the galago JARs from here:

Compilation with Maven

cd into the directory

$ mvn -U clean compile assembly:single

This will create a jar file for this project in ./target/ Additionally, one JAR file that combines all necessary dependencies with this code into one big jar is created (...with-dependencies.jar)

Running

You first need to create an index, see "Galago - the secret documentation" The running example assumes that you have access to the wiki-index created by Jeff Dalton, but it is straight-forward to adapt to any Galago index -- as long as it was built with a Galago version of 3.5 or above.

$ ./run.sh build galago.json
$ ./run.sh search --port=2507 --index=./index
$ ./run.sh batch-search --port=2507 --index=./index --requested=20 queries.json >| result.run
$ ./run.sh eval --judgments=data/robust04/qrels/robust04.qrels --baseline=result.run --metrics=MAP

About

Cheat Sheet implementation using Galago Search API


Languages

Language:Java 98.3%Language:Shell 1.7%