This is going to (and has) confused users. The expectation of clicking the close button if a page has been opened in a new window is to close that window. The link is rendered by documentControls.tag. I'm not sure if the current implementation has any way of knowing that it was loaded from document search. But, if so, this link should probably check the opener and see if it should simply close the window instead of invoking the close action on the servlet.