Added ability to detect where the search request is coming from - useful in external plugins