# Modifying search results

**URL:** <https://meta.discourse.org/t/modifying-search-results/258897>\
**Category:** Development\
**Created:** [March 21, 2023, 2:37pm UTC](https://meta.discourse.org/t/modifying-search-results/258897 "2023-03-21T14:37:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [March 21, 2023, 5:12pm UTC](https://meta.discourse.org/t/modifying-search-results/258897/2 "2023-03-21T17:12:35Z")

</div>

Hi Richard,

Can you elaborate on what modifications you are looking for?

As starting point, I believe you would need to play around:

```js
api.reopenWidget(`search-result-post`, {
    html(attrs) {
        //
    }
})

```

Here for `post`, but you have also: `tag`, `category`, `group`, `user`, and `topic`.

> <https://github.com/discourse/discourse/blob/7f486cbc9b187976ee6dd21b5b0677ffe272f56d/app/assets/javascripts/discourse/app/widgets/search-menu-results.js#L93>

---

_[View the full topic](https://meta.discourse.org/t/modifying-search-results/258897)._
