Defining haystack searcher only if haystack is used