# Getting Search suggestion from secondary field

**URL:** <https://discuss.elastic.co/t/getting-search-suggestion-from-secondary-field/299846>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [March 16, 2022, 9:37am UTC](https://discuss.elastic.co/t/getting-search-suggestion-from-secondary-field/299846 "2022-03-16T09:37:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)\
**Post date:** [March 17, 2022, 12:18pm UTC](https://discuss.elastic.co/t/getting-search-suggestion-from-secondary-field/299846/4 "2022-03-17T12:18:04Z")

</div>

Hey,

So if you're using App Search and Search UI, this code below should be similar for SearchBox:

```auto
<SearchBox
 autocompleteMinimumCharacters={3}
  autocompleteResults={{
    linkTarget: "_blank",
    sectionTitle: "Results",
    titleField: "contactInformation", // the field just to present the result
    urlField: "nps_link",
    shouldTrackClickThrough: true,
    clickThroughTags: ["test"]
  }}
  autocompleteSuggestions={true}
  debounceLength={0}
/>

```

Now see the titleField property, thats the field you specify to display the result. In this example its title but you could create a new field (for example contactInformation) which contains "[Name] [Address] [Phone no]". That field contents will be present when matches in the autocomplete results are shown.

Hope this helps.

---

_[View the full topic](https://discuss.elastic.co/t/getting-search-suggestion-from-secondary-field/299846)._
