Spotlight (search)
    • Dark
      Light
    • PDF

    Spotlight (search)

    • Dark
      Light
    • PDF

    Article summary

    Search for rooms or users.

    Method

    Requires Auth

    spotlight

    Yes

    Payload parameters

    Argument

    Example

    Required

    Description

    searchString

    test

    Required

    The term to be searched for.

    exclude

    test.rc

    Optional

    Any items to exclude from the results (e.g. users you already know about).

    options

    { "users": true, "rooms": false }

    Required

    The kind of fields to search for.

    Example call

    {
        "msg": "method",
        "method": "spotlight",
        "params": ["test", ["testrc"], {
            "users": true,
            "rooms": false
        }],
        "id": "74290"
    }

    Example response

    {
        "msg": "result",
        "id": "74290",
        "result": {
            "users": [
                {
                    "_id": "ZoJM4tvohREwJbtAh",
                    "username": "testrc",
                    "status": "offline",
                    "name": "TestRc",
                    "outside": true
                }
            ],
            "rooms": []
        }
    }
    


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence