# Unable to view simple results with search ui

**URL:** <https://discuss.elastic.co/t/unable-to-view-simple-results-with-search-ui/223361>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [March 12, 2020, 2:55pm UTC](https://discuss.elastic.co/t/unable-to-view-simple-results-with-search-ui/223361 "2020-03-12T14:55:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [March 12, 2020, 2:55pm UTC](https://discuss.elastic.co/t/unable-to-view-simple-results-with-search-ui/223361/1 "2020-03-12T14:55:31Z")

</div>

Hi. i am trying to use search ui with site search.  
after setting things up it seems that i can search but not VIEW anything. in the network tab it seems that responses are being retunred but they are not rendered. i followed the getting started on github.  
my code:  
import React from "react";

import { SearchProvider, Results, SearchBox } from "@elastic/react-search-ui";

import { Layout } from "@elastic/react-search-ui-views";

import SiteSearchAPIConnector from "@elastic/search-ui-site-search-connector";

import "@elastic/react-search-ui-views/lib/styles/styles.css";

const connector = new SiteSearchAPIConnector({

documentType: "my-site",

engineKey: "\*\*\*\*\*\*\*\*\*"

});

export default function App() {

return (

```
<SearchProvider

  config={{

    apiConnector: connector

  }}

>

  <div className="App">

    <Layout

      header={<SearchBox />}

      bodyContent={<Results titleField="title" urlField="nps_link" />}

    />

  </div>

</SearchProvider>

```

);

}

---

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [March 12, 2020, 3:11pm UTC](https://discuss.elastic.co/t/unable-to-view-simple-results-with-search-ui/223361/2 "2020-03-12T15:11:49Z")

</div>

ok found the problem. it was the document type. needed to be "page".  
the documentation needs work.

thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 9, 2020, 3:11pm UTC](https://discuss.elastic.co/t/unable-to-view-simple-results-with-search-ui/223361/3 "2020-04-09T15:11:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
