Product Selector

Fusion 5.9
    Fusion 5.9

    Placeholders

    Placeholders represent values that the user must replace before using a provided sample input.

    Placeholder rules are well-documented in the Google Developer Documentation Style Guide. This style guide does not attempt to reproduce their efforts, which you can consult. Instead, this page documents more common topics that occur regularly in writing Lucidworks documentation.

    Placeholders in code samples and terminal input

    Do not use pronouns such as my or your in the placeholder’s name.

    When using generic placeholders in inline text, write the placeholder in all caps. Use underscores if the placeholder is multiple words long.

    Recommended

    PROJECT_NAME

    Not recommended

    your-project-name

    Include a note before or after the placeholder that states to replace the placeholder.

    Recommended

    ✅ Replace APPLICATION_NAME with the name of your application.

    Not recommended

    APPLICATION_NAME = your app name

    If you need to show real-looking examples, use diverse placeholders that are not politically, sexually, or racially charged. Do not use full personal information of past or present Lucidworks employees, contractors, or vendors.

    Shorten real-looking placeholders that are extremely long after approximately 10 characters. An example is the access token for the Springboard APIs. Include a note saying the value has been shortened.

    Example placeholders

    Sometimes it is necessary to show real-looking placeholder values.

    When you need an example domain name, use example.org, example.net, or example.com.

    When you need an example subdomain or directory, feel free to use subdomains or directories that a user may use on their own website or directory structure. Do not use generic placeholders such as foo or bar.

    Recommended

    ✅ Disallow /config/

    Not recommended

    ✘ Disallow /foo/

    Recommended

    ping archive.example.com

    Not recommended

    ping subdomain.example.com

    Standardized placeholders

    In situations where it’s necessary to show a real-looking Customer ID and Application ID values in Springboard’s APIs, use the following values:

    Field Placeholder Value

    Customer ID

    {placeholderCustomerUuid}

    441eb3be-7de6-470a-8141-e416a15c7db1

    Application ID

    {placeholderApplicationUuid}

    e2edc6de-ea00-404e-a58e-9c3810fb0c91

    sessionid

    {placeholderSessionId}

    864782f0-af36-4dee-8430-9e73d6006eaa

    queryid

    {placeholderQueryId}
    {placeholderQueryId2}
    {placeholderQueryId3}

    fd110486-f168-47c0-a419-1518a4840589
    8084969c-bd23-40f7-9acf-c68d6798bec2
    e123f4bc-5e7e-46dd-9be8-71a4f73e511a

    access_token

    {placeholderAccessToken}

    eyJraWQiOiJ…​

    id

    {placeholderDocumentId}
    {placeholderDocumentId2}
    {placeholderDocumentId3}
    {placeholderDocumentId4}
    {placeholderDocumentId5}

    441eb3be-7de6-470a-8141-e416a15c7db1-6a092bd4-5098-466c-94aa-40bf68294303-68708807657148371333355819934570439731
    441eb3be-7de6-470a-8141-e416a15c7db1-fb148491-b39e-46d1-af33-44cd964d8ee0-34049685392290835527739651484332150529
    441eb3be-7de6-470a-8141-e416a15c7db1-118109e5-7ec5-42bb-834d-e3cd41bba65f-47402309926353658638499384569395150502
    441eb3be-7de6-470a-8141-e416a15c7db1-d439fd0d-1edf-4982-b00c-51c94a5c0490-43870931094300738494010378876873965115
    441eb3be-7de6-470a-8141-e416a15c7db1-1af001c0-cabc-4430-b3b1-c1d8f632e87a-34049685392290835527739651484332150529

    A real Springboard access_token is over 800 characters long. Publishing a full access_token example value is extremely unlikely.
    ✅ Recommended
    {
      "token_type": "Bearer",
      "expires_in": 3600,
      "access_token": "eyJraWQiOiJ...",
      "scope": "connectedsearch.query"
    }

    These placeholders are available as attributes. To use the placeholders on the docs site, use {PLACEHOLDER_NAME} in the code sample wherever you want to include a placeholder.

    If you are including a placeholder’s value in a source block, add subs=attributes to the source section of a code block so that it reads [source,LANGUAGE,subs=attributes].

    Placeholders in UI screenshots

    Using placeholders in UI screenshots may be necessary to show a multi-step process or to prevent an error from displaying when a field is required. When this is the case, use the names and values provided in the standardized applications or in the Google Developer Documentation Style Guide.

    Resources

    The following resources discuss specific placeholder topics: