When you are passing in an empty array for the displayAdditionalSearchResult, there is no search actually being triggered. If you pass in the search object with a string that does not exist in the document it should show the ‘no result found’ text.
You can also test this on our showcase demo by searching for text that does not exist, i.e.
However, this logic is specific to my internal implementation and cannot be directly reused. To reproduce the issue, override searchFactory where you always put empty array and trigger it with the UI search panel or method you provide. However, when we overriding searchFactory, the “No result found.” message, as shown in your screenshot, does not appear what is a issue i report.
I was able to reproduce the issue of the search sample not showing up the ‘no search found’ message when using the above sample. I was able to reproduce it just as is from the sample without any custom code.
I will add this to the backlog for the product team to review.
The issue seems to be that it is not going to the line here in our WebViewer UI:
Because of this, it is not displaying the
element with the ‘no result found’ message.
You could override this via our advanced ui customization as a workaround: