> ## 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.

# Layout of the Default View

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>;
};

[localhost link]: http://localhost:3000/docs/4/app-studio/concepts/layout-and-styling/default-view

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/concepts/layout-and-styling/default-view

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/995

This topic explores the elements that compose the default App Studio view.

The default view looks like this:

<img src="https://mintcdn.com/lucidworks/5ke8cW0mIlWM2jtJ/assets/images/app-studio/4.2/anatomy0.png?fit=max&auto=format&n=5ke8cW0mIlWM2jtJ&q=85&s=05cd12a7cdcfeaa6b0140f257a9ca3d2" alt="Default view" width="2562" height="1052" data-path="assets/images/app-studio/4.2/anatomy0.png" />

As we explore the components of the page, we will highlight each area in turn.

<LwTemplate />

## Include a partial file

The header of the default view is a partial file that is included with the `layout:include` tag:

```xml wrap  theme={"dark"}
<layout:include file="views/partials/header.tpl.html" action="search"></layout:include>
```

<img src="https://mintcdn.com/lucidworks/5ke8cW0mIlWM2jtJ/assets/images/app-studio/4.2/anatomy1.png?fit=max&auto=format&n=5ke8cW0mIlWM2jtJ&q=85&s=ae24a4f62bc87e4dd44ebffff0817316" alt="Included header file" width="2562" height="1052" data-path="assets/images/app-studio/4.2/anatomy1.png" />

The `header.tpl.html` file, in turn, contains a number of `layout` tags, plus the important [`search:box`](/docs/4/app-studio/reference/tags/lightning.directive.searchBox) tag.

## Sidebar with facet list

The sidebar is rendered using the simple [`layout:sidebar`](/docs/4/app-studio/reference/tags/lightning.directive.layoutSidebar) tag. Within the sidebar, the [`search:facet-list`](/docs/4/app-studio/reference/tags/lightning.directive.searchFacetList) and [`search:facet`](/docs/4/app-studio/reference/tags/lightning.directive.searchFacet) tags contain the parameters that configure the facet fields and their display.

<img src="https://mintcdn.com/lucidworks/5ke8cW0mIlWM2jtJ/assets/images/app-studio/4.2/anatomy2.png?fit=max&auto=format&n=5ke8cW0mIlWM2jtJ&q=85&s=812cd92a05723163896a212aae1b0a65" alt="Sidebar with facets" width="2562" height="1052" data-path="assets/images/app-studio/4.2/anatomy2.png" />

```xml wrap  theme={"dark"}
<layout:block md="1-3" lg="1-4" drawer="left" id="sidebar" styling="blocksidebar-light">
    <layout:sidebar>
        <layout:box>

            <!-- List facets and give them intuitive labels -->
            <search:facet-list facet-names="genres_ss" response="response" platform="platform" query="query" styling="facet-list facet-list-wrappedheader">
              <search:facet when-field="genres_ss" show="10" search-enabled="true" platform="platform" query="query" max-characters="40" show="12" show-more="24" collapsible="true"></search:facet>
              <search:facet show="10" max-characters="40" show="12" show-more="24" collapsible="true"></search:facet>
            </search:facet-list>

        </layout:box>
    </layout:sidebar>
</layout:block>
```

## Search statistics and results list

In the content area, `layout` tags are used again to construct the grid layout. For brevity, we will omit those from the code samples below.

<img src="https://mintcdn.com/lucidworks/5ke8cW0mIlWM2jtJ/assets/images/app-studio/4.2/anatomy3.png?fit=max&auto=format&n=5ke8cW0mIlWM2jtJ&q=85&s=2c748c6087bee41261d031700f3b6cee" alt="Content area" width="2562" height="1052" data-path="assets/images/app-studio/4.2/anatomy3.png" />

The [`search:response-statistics`](/docs/4/app-studio/reference/tags/lightning.directive.searchResponseStatistics) tag displays the number of search results, and a `{{ response.time }}` variable displays the number of milliseconds Fusion took to respond:

```xml wrap  theme={"dark"}
<search:response-statistics response="response"></search:response-statistics>
<p class="response-statistics">(Fusion took {{ response.time }}ms)</p>
```

Then, the [`search:result-list`](/docs/4/app-studio/reference/tags/lightning.directive.searchResultList) tag lays out the grid of search results:

```xml wrap  theme={"dark"}
<search:result-list response="response" styling="cards-sm-1 cards-lg-2 cards-xl-2" platform="platform" query="query" instant-results="true">
  ...
</search:result-list>
```

## Individual results

The [`search:result`](/docs/4/app-studio/reference/tags/lightning.directive.searchResult) and [`search:field`](/docs/4/app-studio/reference/tags/lightning.directive.searchField) tags configure which fields are displayed with each individual search result. A field can be styled as the title or description, and any additional fields can have a variety of styles.

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/4.2/search-result.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=c75ee6f48744cc3cd92cb0425a48582b" alt="Search result" width="860" height="346" data-path="assets/images/app-studio/4.2/search-result.png" />

```xml wrap  theme={"dark"}
<search:result>
  <search:field name="title_txt" styling="title" urlfield></search:field>
  <search:field name="year_i" styling="description" max-characters="150"></search:field>
  <search:field name="genres_ss" styling="label-left"></search:field>
</search:result>
```

## Null search results

In the case of no search results, the `search:no-results` tag displays a default message:

```xml wrap  theme={"dark"}
<search:no-results response="response"></search:no-results>
```

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/4.2/no-results.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=04e59ffc4aea813895f31f2530e98764" alt="No results" width="1925" height="967" data-path="assets/images/app-studio/4.2/no-results.png" />
