diff options
author | Kristian Aune <kkraune@users.noreply.github.com> | 2017-06-06 14:55:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 14:55:23 +0200 |
commit | 6d1e742a617a04cc76465cff294c1fb633a06ae8 (patch) | |
tree | 63e5c486beafc05610e3569c820cf5708136420c /sample-apps | |
parent | e864418a70c5f029ad94011624d13ea012ca12da (diff) |
make empty, add details later
Diffstat (limited to 'sample-apps')
-rw-r--r-- | sample-apps/blog-recommendation/README.md | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/sample-apps/blog-recommendation/README.md b/sample-apps/blog-recommendation/README.md index 0b6a00c9743..705c4e6879c 100644 --- a/sample-apps/blog-recommendation/README.md +++ b/sample-apps/blog-recommendation/README.md @@ -1,55 +1 @@ -Basic Search Application -================== -Start by [deploying a sample application](http://vespa.corp.yahoo.com/6/documentation/developing-with-vespa.html). - -### Find the endpoint - -When you have successfully deployed your own compiled version of the application above, you need to find the name of the "endpoint". -The endpoint is used for feeding and searching for data. -**Please allow a few minutes for the endpoint to appear after deployment** -You can find this endpoint by doing: - ```sh - - mvn vespa:endpoints | grep Endpoints - ``` - -You can also find it by looking at the [Hosted Vespa Dashboard](http://dashboard.vespa.corp.yahoo.com). - - -### Feed and search - 1. **Feed** the data that is to be searched - ```sh - - # Feeding two documents - curl -X POST --data-binary @music-data-1.json <endpoint url>/document/v1/music/music/docid/1 | python -m json.tool - curl -X POST --data-binary @music-data-2.json <endpoint url>/document/v1/music/music/docid/2 | python -m json.tool - - ``` - -For feeding many documents fast and reliable, checkout [feeding example](https://git.corp.yahoo.com/vespa-samples/basic-feeding-client) - - 2. **Visit documents - - Since we do not have many documents we can list them all - ```sh - - # All documents - curl <endpoint url>/document/v1/music/music/docid | python -m json.tool - - # Document with id 1 - curl <endpoint url>/document/v1/music/music/docid/1 | python -m json.tool - - ``` - - 3. **Search** - We can also search for documents: - ```sh - - curl '<endpoint url>/search/?query=bad' | python -m json.tool - - - ``` - -### Next step: from development to production -See [continuous deployments](http://vespa.corp.yahoo.com/6/documentation/continuous-deployment.html) for how to implement continuous deployments for production. -See [RESTified Document Operation API](http://vespa.corp.yahoo.com/6/documentation/document_api_v1.html) for documentation about the REST API for document operations. +Blog Recommendation |