RPM向けのQuick Startが見当たらないので書いてみた。
インストール
$ sudo yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-7/group_vespa-vespa-epel-7.repo
$ sudo yum -y install epel-release centos-release-scl
$ sudo yum -y install vespa
起動
$ sudo systemctl start vespa
$ sudo systemctl start vespa-configserver
サンプルを試す
deploy
$ git clone https://github.com/vespa-engine/sample-apps.git
export VESPA_SAMPLE_APPS=`pwd`/sample-apps
$ /opt/vespa/bin/vespa-deploy prepare $VESPA_SAMPLE_APPS/basic-search/src/main/application/
$ /opt/vespa/bin/vespa-deploy activate
データをFeed
$ curl -s -X POST --data-binary @${VESPA_SAMPLE_APPS}/basic-search/music-data-1.json \
http://localhost:8080/document/v1/music/music/docid/1 | python -m json.tool
$ curl -s -X POST --data-binary @${VESPA_SAMPLE_APPS}/basic-search/music-data-2.json \
http://localhost:8080/document/v1/music/music/docid/2 | python -m json.tool
クエリーを投げてみる
$ curl -s http://localhost:8080/search/?query=bad | python -m json.tool
参考URL
http://docs.vespa.ai/documentation/
http://docs.vespa.ai/documentation/vespa-quick-start.html