Giter VIP home page Giter VIP logo

Comments (3)

jobergum avatar jobergum commented on April 28, 2024 1

Thanks a lot for sharing the screencast @wiradikusuma and for trying out Vespa! We'll review the quick start guide and improve it based on your feedback! Keep us posted!

from vespa.

vekterli avatar vekterli commented on April 28, 2024

I just ran through the quickstart from scratch and got the following (expected) output:

$ curl -s http://localhost:8080/search/?query=bad | python -m json.tool 
{
    "root": {
        "children": [
            {
                "fields": {
                    "artist": "Michael Jackson",
                    "documentid": "id:music:music::1",
                    "duration": 247,
                    "sddocname": "music",
                    "title": "Bad",
                    "year": 1987
                },
                "id": "id:music:music::1",
                "relevance": 0.254574922399675,
                "source": "music"
            },
            {
                "fields": {
                    "artist": "Eminem",
                    "documentid": "id:music:music::2",
                    "sddocname": "music",
                    "title": "So Bad",
                    "year": 2010
                },
                "id": "id:music:music::2",
                "relevance": 0.05447959677335429,
                "source": "music"
            }
        ],
        "coverage": {
            "coverage": 100,
            "documents": 2,
            "full": true,
            "nodes": 0,
            "results": 1,
            "resultsFull": 1
        },
        "fields": {
            "totalCount": 2
        },
        "id": "toplevel",
        "relevance": 1.0
    }
}
$ curl -s http://localhost:8080/document/v1/music/music/docid/2 | python -m json.tool
{
    "fields": {
        "album": "Recovery",
        "artist": "Eminem",
        "title": "So Bad",
        "year": 2010
    },
    "id": "id:music:music::2",
    "pathId": "/document/v1/music/music/docid/2"
}

This is on macOS 10.12.6 running Docker version 17.06.2-ce.

What kind of output do you get from the curl command directly, i.e. omitting | python -m json.tool?

Also, what resource limits have you set for Docker? I ran the above with 4 CPUs and 4GiB.

from vespa.

wiradikusuma avatar wiradikusuma commented on April 28, 2024

After trying for the 3rd time, with slower copy-paste pace (I wanted to do screencast to show the issue), it's now working. I'll close this. Thanks!

(for those who are curious, here's the screencast: https://cl.ly/1A291i222I2f)

from vespa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.