# Search results text highlighting only

**URL:** <https://pdfjs.community/t/search-results-text-highlighting-only/2002>\
**Category:** Technical Support\
**Created:** [September 2, 2022, 4:00pm UTC](https://pdfjs.community/t/search-results-text-highlighting-only/2002 "2022-09-02T16:00:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![apetrov](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@apetrov](https://pdfjs.community/u/apetrov)\
**Post date:** [September 2, 2022, 4:00pm UTC](https://pdfjs.community/t/search-results-text-highlighting-only/2002/1 "2022-09-02T16:00:56Z")

</div>

**[Pdfjs.express](http://Pdfjs.express) Viewer version**

**Issue description**  
We trying to highlight search results in viewer using `textSearchInit` method:

```javascript
const searchMode = instance.Core.Search.Mode.PAGE_STOP | instance.Core.Search.Mode.HIGHLIGHT;
documentViewer.textSearchInit(phrase, searchMode, {fullSearch: true});

```

And unfortunately we did not saw expected behavior.

We also tried to highlight search results in viewer using `searchTextFull`:

```javascript
instance.UI.searchTextFull("some")

```

And it’s working as expected, but it also displays search sidebar, which we would like to hide and make our own instead.

**The question**

Is this possible to highlight text in viewer only, without displaying search sidebar?

---

_[View the full topic](https://pdfjs.community/t/search-results-text-highlighting-only/2002)._
