> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lucidworks Search apps

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

export const InlineImage = ({src, alt = '', height = '2em'}) => {
  return <img src={src} alt={alt} style={{
    display: 'inline',
    verticalAlign: 'start',
    height: height,
    margin: '0'
  }} />;
};

[localhost link]: http://localhost:3000/docs/lucidworks-search/03-ui-tour/fusion-apps

[mintlify link]: https://doc.lucidworks.com/docs/lucidworks-search/03-ui-tour/fusion-apps

[old doc.lw link]: https://doc.lucidworks.com/managed-fusion/5.9/hnym6k

*Lucidworks Search apps* provide tailored search functionality to specific groups of users.

An app is a named set of linked *objects*, including collections, datasources, index and query pipelines, index and query profiles, parsers, and more.
You can define security on a per-app basis using [roles](/docs/lucidworks-search/08-administration/access-control/roles) and
[security realms](/docs/lucidworks-search/08-administration/access-control/security-realms).

Generally, you will create multiple apps for different purposes. You can view all of your apps in the launcher when you log in to the Lucidworks Search UI:

<img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-1-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=38545558a2d60fa332211f570f514635" alt="Launcher" width="2454" height="1608" data-path="assets/images/5.6/launcher-1-56.png" />

To enter the Lucidworks Search workspace for any app, click the app name.

In the Lucidworks Search workspace, you can hover over <InlineImage src="/assets/images/5.6/workspace-menu-apps-56.png" /> to switch to another app, create a new app, or return to the launcher:

<img src="https://mintcdn.com/lucidworks/VKnUHJXP6sWH55ak/assets/images/5.6/workspace-app-picker-56.png?fit=max&auto=format&n=VKnUHJXP6sWH55ak&q=85&s=de97a7809a0393da5a7426675edf6687" alt="App picker" width="250" height="369" data-path="assets/images/5.6/workspace-app-picker-56.png" />

<Card title="Fusion Applications and Collections" class="note-image" href="https://academy.lucidworks.com/fusion-applications-and-collections" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
  The course for **Fusion Applications and Collections** focuses on the features of Fusion apps and collections and best practices when working with them.
</Card>

<LwTemplate />

## Learn more

<AccordionGroup>
  <Accordion title="Create and manage Lucidworks Search apps">
    You can delete an app in the Lucidworks Search UI or with the Apps API.

    ## Manage apps in the Lucidworks Search UI

    ### Create an app

    Lucidworks Search prompts you to create an app the first time you log in. You can create additional apps at anytime from Fusion’s home page.

    1. Log into Fusion and navigate to the home screen.
    2. Click **Create new app**.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/welcome-screen-create-app.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=d5c1b818f232678424988e589397d7d6" alt="Welcome screen create app" width="678" height="684" data-path="assets/images/5.9/welcome-screen-create-app.png" />
    3. Enter a **Name**, **Description**, and select an **App tile color**.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/create-app-details.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=e0e17ffc65178414b5a5d6386bf9dce1" alt="Create app" width="1702" height="1206" data-path="assets/images/5.9/create-app-details.png" />
    4. Click **Create App**.

    ### Modify or delete an app

    1. Log into Fusion and navigate to the home screen.
    2. Click the **Configure** icon on the app you want to modify or delete.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/launcher-app-config-hover.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=15707ec049a5faf64fbdeb0b644abc65" alt="App config button" width="1461" height="830" data-path="assets/images/5.9/launcher-app-config-hover.png" />
    3. To modify the app, click the edit icon <img className="inline-image" alt="Edit icon" src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/app-edit-icon.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=f725ecb17c8bf540a33a36d916967f30" width="29" height="30" data-path="assets/images/5.9/app-edit-icon.png" />.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/modify-app-details.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=37109663bd40196d6feae320d06e371a" alt="Modify app details" width="1457" height="1215" data-path="assets/images/5.9/modify-app-details.png" />

       1. Edit the **Name** or **Description**.
       2. Click **OK**.
    4. To delete the app, click **Delete app**.
       1. A dialog box appears where you can choose which associated objects to delete or retain. Only objects not associated with other objects are displayed. All objects are selected by default.
       2. Click **Confirm**.

              <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/launcher-app-delete-dialog.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=6af7b5b6a97d5f7a577527c04a5e3845" alt="Confirmation dialog" width="1072" height="1417" data-path="assets/images/5.9/launcher-app-delete-dialog.png" />

    ## Manage apps with the Apps API

    ### Create an app

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -X POST -H 'Content-type: application/json' -d '{"id": "MyNewApp", "name":"My new app", "description":"A really really great new app"}' https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/apps
    ```

    ### Delete an app

    Run the following command, replacing `{id}` with the name of your app. This operation take about a minute to complete.

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -X DELETE https://https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/apps/{id}
    ```
  </Accordion>

  <Accordion title="Export a Lucidworks Search App">
    To export a Lucidworks Search app, you can use either the Lucidworks Search UI or the Objects API.

    ## Export an app with the Lucidworks Search UI

    1. How to export an app with the Lucidworks Search UI
    2. Navigate to the launcher.
    3. Hover over the app you want to export and click the Configure icon:
           <img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-app-config-hover-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=8ae921d898899048020c96681719b4ee" alt="App config button" width="3138" height="1134" data-path="assets/images/5.6/launcher-app-config-hover-56.png" />
    4. In the app config window, click **Export app to zip**:
           <img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-export-app-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=198aa7f16fddd9adc758115e7ec132c2" alt="Export app to zip" width="869" height="989" data-path="assets/images/5.6/launcher-export-app-56.png" />

    ## Export an app with the Objects API

    The examples below show how to export one or more apps:

    **Export all apps**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/objects/export?type=app > all-apps.zip
    ```

    **Get all app IDs, then export one app by ID**

    ```bash wrap expandable theme={"dark"}
    > curl -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/apps

    [ {
      "id" : "movies",
      "name" : "Movies",
      "description" : "Search the movielens database.",
      "dataUri" : "/App-Tile-01-460x160.png",
      "properties" : {
        "headerImageName" : "headerImage1",
        "tileColor" : "apps-darkblue",
        "previousCollectionId" : "movies"
      }
    }, {
      "id" : "tech-pubs",
      "name" : "TechPubs",
      "description" : "Search the documentation.",
      "dataUri" : "/App-Tile-02-460x160.png",
      "properties" : {
        "headerImageName" : "headerImage2",
        "tileColor" : "apps-darkblue",
        "previousCollectionId" : "tech-pubs"
      }
    } ]

    > curl -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/objects/export?app.ids=tech-pubs > techpubs.zip
    ```

    <Note>When you export an app that includes objects that are shared with other apps, then all apps linked to that object are also exported.</Note>

    **Export two apps by ID**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/api/objects/export?app.ids=tech-pubs,movies > two-apps.zip
    ```

    <Tip>
      For the `app` object type, the `deep` parameter is not used. Linked objects are always included when exporting apps.
    </Tip>
  </Accordion>

  <Accordion title="Import a Lucidworks Search App">
    <a name="import" />To import an app, you can use either the Lucidworks Search UI or the Objects API.

    ## Import an app with the Lucidworks Search UI

    1. How to import an app with the Lucidworks Search UI
    2. Sign in to Lucidworks Search.
    3. In the Add new app screen, click **Import app**.
           <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/launcher-import-app.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=c093d9e28cc5ab76f2c4a7323d741afa" alt="Import app" width="591" height="578" data-path="assets/images/5.0/launcher-import-app.png" />
    4. Under **Data File**, click **Choose File** and select the zip file containing the app you want to import.
    5. If your app has usernames and passwords in a separate file, select it under **Variables File**.
       If the Variables File is needed, it *must* be a separate file that is not in a .zip file. It is a .json map of variables to values. The following is an example:
       ```json theme={"dark"}
       {
       "secret.dataSources.Inventory_BR_S3_DS.password":"SOMETHING",
       "secret.dataSources.LLM_A_BR_S3_DS.password":"FmJSaDE9Tj5REDACTED",
       "secret.dataSources.LLM_BR_Inventory_S3_DS.password":"FmJSaDE9Tj5GzIVvethAC4Huh",
       "secret.dataSources.LLM_BR_Load_S3_DS.password":"FmJSaDE9Tj5GzIVvethAC4"
       }
       ```
    6. You can sometimes edit parameter values to use the new values in the imported app. If this is the case, Lucidworks Search displays a dialog box that lets you edit the parameter values.\\
           <img src="https://mintcdn.com/lucidworks/de_1M1m_4TTyJqw0/assets/images/5.0/import-app-edit-parameters.png?fit=max&auto=format&n=de_1M1m_4TTyJqw0&q=85&s=2211f3a81b3394a7959b582d59afa2b9" alt="Edit parameter values" width="1658" height="1152" data-path="assets/images/5.0/import-app-edit-parameters.png" />
       Make desired changes, and then click **Import**.

    ## Import an app with the Objects API

    Like any other Lucidworks Search object, an exported app is contained in a zip file which Lucidworks Search can consume upon import. The zip file does not need to be expanded first.

    **Import objects from a file and stop if there are conflicts**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/export.zip' http://localhost:6764/api/objects/import?importPolicy=abort
    ```

    **Import objects, substitute the password variables, and merge any conflicts**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/export.zip' -F 'variableValues=@password_file.json' http://localhost:6764/api/objects/import?importPolicy=merge
    ```

    <Note>`password_file.json` must contain plaintext passwords.</Note>

    **Import a zip file of Lucidworks Search objects and merge any conflicts**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/techpubs.zip' http://localhost:6764/api/objects/import?importPolicy=merge
    ```
  </Accordion>

  <Accordion title="Share Objects Between Lucidworks Search Apps">
    <a name="share" />Sharing objects between apps lets you reuse parts of apps and synchronize apps without duplicating objects. For example, after you have developed a query pipeline that is well-suited to your data and search application, you can reuse it in another app with a different set of datasources.

    <Check>When a shared object is modified in one app, the changes affect all other apps that share the object.</Check>

    To share an object between apps:

    1. Navigate to the app that does not yet include the object.
    2. Navigate to **System** > **Object Explorer** or click **Find Objects**.
    3. Click **In Any App**.
    4. Select the object you want to include in this app.
    5. Hover over the object to reveal the app icon.\\
           <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/object-explorer-hover.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=0f7bce5c412bc07548ec3aa13938cf04" alt="Hover over an object" width="2560" height="1292" data-path="assets/images/5.0/object-explorer-hover.png" />
    6. Click the app icon.
    7. Select **Add to this app**.\\
           <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/object-explorer-add-to-app.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=df2a9b7a8cc3c8592623c091aa6a9b15" alt="Add to this app" width="2560" height="938" data-path="assets/images/5.0/object-explorer-add-to-app.png" />
       Object Explorer now displays a link between the object and this app:
           <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/object-explorer-added-to-app.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=1b7ae1675a3354a5f167c04806322d20" alt="Added to this app" width="2560" height="1292" data-path="assets/images/5.0/object-explorer-added-to-app.png" />

    Now you will see the shared object in the Fusion workspace for this app.

    <Card title="Fusion Applications and Collections" class="note-image" href="https://academy.lucidworks.com/fusion-applications-and-collections" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
      The course for **Fusion Applications and Collections** focuses on the features of Fusion apps and collections and best practices when working with them.
    </Card>
  </Accordion>
</AccordionGroup>
